Contents |
Prev |
Next |
Index
Command Line Switches
Canterbury Modula-2 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.mod" 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 Modula-2 language extensions.
-
-JAVAC
-
Also write *.class files after Modula-2 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 Modula-2 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 Modula-2 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 Modula-2 source lines as comments into the output Java
files.
-
-R4 or -R8
-
4- or 8-bytes REAL, default is -R8.
-
-H2 or -H4
-
2- or 4-bytes HIGH result, default is -H4.
-
-S2 or -S4
-
Default integer or cardinal base type for subranges is 2 or 4 bytes
wide. Default is -S4.
Contents |
Prev |
Next |
Index
Canterbury Modula-2 for Java (Last documentation update
Feb 8, 2000)
Copyright © 1998 Mill Hill &
Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to
mhc@webcom.com