Contents | Prev | Next | Index


Command Line Switches

Canterbury Oberon-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.obn 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.
-JAVAC
Also write *.class files after Oberon-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 Oberon-2 compilation using JIKES from IBM Alphaworks. Note: Only works on systems where subprocess can be called from java as "jikes <class-file> <options> +$". Jikes is much faster than JAVAC.
-O or -D
Optimized or debugger-supported class file output, only accepted in conjunction with -JAVAC or -JIKES switch. Any Java debugger is supported.
-L
Also write Oberon-2 source lines as comments into the output Java files.
-DFN
Generate definition files for the current and for all imported modules. Each definition file goes into the same directory as the one of the source file. A definition file offers a special interface view of the module. In this compiler, if the source module is not found, but the definition file (generated from a previous compilation) is there, the compiler uses that one for re-creating an internal symbol table during import, otherwise it uses the source module and ignores the defintion file. If a Java class has been originally created from an Oberon-2 source module, it can be distributed with a definition file instead of a full source module file and it can then be used or extended by other Oberon-2 developers using this compiler, too.


Contents | Prev | Next | Index

Canterbury Oberon-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