Contents | Prev | Next | Index


Compiler Switches

Canterbury Pascal for JVM accepts the following command line switches:

-M
Make: Also recompile updated dependent source files.
-B
Build: Also recompile all dependent source files, including the runtime SYSTEM unit. Note: Takes a while to recompile everything!
-R
Runtime files of the "mhc.compiler.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.
-D
Class file output includes local variable tables and line number tables. Supported by most Java debuggers.
-JDB
Same as -D switch. In addition, a copy of the source file with the file name extension ".pas.debug.java" is created. This is useful for Java debuggers which will only recognize source files with the ".java" extension. This compiler switch should be used in order to support the JDB debugger which is a part of JDK 1.1.x or Java-2 SDK 1.2.x.
-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.
-P
Verbose compilation with error prompts.


Contents | Prev | Next | Index

Canterbury Pascal for JVM  (Last documentation update Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com  . All rights reserved.
Please send any comments or corrections to neuhoff@mhccorp.com