Here are options that are available from the command line:
-build compile and link -ship install package -clean delete derived files -find locate source files -depend output package dependencies
-g produce symbol table information for debugger -O optimize code -A disable code generation for assertions -once don't recompile to improve opaque object code -w0 .. -w3 limit compiler warning messages -Z generate coverage analysis code -profile generate profiling code -lazy generate lazy module initialization code (main module and imports only) This is the default. -linkall generate module initialization code for all modules, even those that are not imported directly or indirectly by Main. This is currently experimental and does not always work as expected.
-c compile only, produce no program or library -a foo build library foo -o foo build program foo -skiplink skip the final link step
-silent produce no diagnostic output -why explain why code is being recompiled -commands list system commands as they are performed -verbose list internal steps as they are performed -debug dump internal debugging information
-help print this help message -? print this help message -version print the version number header -config print the version number header
-keep preserve intermediate and temporary files -times produce a dump of elapsed times -override include the ".m3overrides" file -x include the ".m3overrides" file -Dsymbol define symbol with the value TRUE -Dsym=val define sym with the value val -F fn prepend the quake code of file fn -FP fn " -prepend fn " -FA fn append the quake code of file fn -append fn " -console produce a Windows CONSOLE subsystem program -gui produce a Windows GUI subsystem program -windows produce a Windows GUI subsystem program -pretend val pretend to run as CM3_Version val
Option listing source: "cm3 -?"
Critical Mass Modula-3 version 5.2.3
last updated: 2003-03-09
See also the Introductory Tutorial for more information.