Contents | Prev | Next | Index


Compiler Switches

Canterbury Pascal for Java accepts the following command line switches:

-M
Make: Also recompile updated dependent source files.
-B
Build: Also recompile all dependent source files.
-R
Runtime files of the "mhc.runtime.pas" package are compiled into the current working directory without a package clause. It also requires the -M or -B switch. This switch is useful for applets whose classes, including those of the runtime system, are all to reside in the same current working directory, especially when being loaded and run from a browser environment.
-W0 or -W1
Warning messages: -W0=no -W1=yes
-C=n
Cancel after n error messages
-XF
Extended function designator usage. Enable using them in procedure calls ignoring return value.
-XL
Enable Pascal language extensions.
-XT
Enable stricter type checking for arithmetic and relational operations with mixed typed operands.
-JAVAC
Also write *.class files after Pascal compilation using the JDK Javac compiler in a subprocess. Note: Quite slow on systems with less than 32 MB RAM. Only works on systems where subprocess can be called from Java as "javac <class-file> <options>".
-JIKES
Also write *.class files after Pascal compilation using IBM Alphaworks Jikes compiler. Note: Only works on systems where subprocess can be called from java as "jikes <class-file> <options> +$". At the time of this publication, Jikes still has some problems returning from the subprocess to the waiting Pascal compiler. It also has problems recognizing generated Java symbols containing the $-sign. IBM will hopefully fix these problems. Jikes is otherwise a very promising product, it is much faster than Javac.
-O or -D
Optimized or debugger-supported class file output, only accepted in conjunction with -JAVAC or -JIKES switch.
-L
Also write Pascal source lines as comments into the output Java files.
-R4 or -R8
4- or 8-bytes REAL, default is -R8.
-SERIAL
Generate Java serializable record or class types. Needed when writing or reading records or classes to or from files.


Contents | Prev | Next | Index

Canterbury Pascal for Java  (Last documentation update Apr 19, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com