Changing compiler options

m3_option(x) adds option x to the set of arguments passed to the compiler.

remove_m3_option(x) removes option x from the set of arguments passed to the compiler.

Specifically, m3_option adds x to the M3OPTIONS variable. x should be a single string preceded with a hyphen, e.g. m3_option("-O").

Some of the more useful compiler options include:

-why        Explain why each compilation is needed (default).
-commands   Print the compilation commands as they are started.
-verbose    Print what happens to each file.
-times      Print a breakdown of elapsed time.
-g          Generate debugging symbols (default).
-O          Optimize code.
-keep       Preserve intermediate files.
-once       Don't recompile modules with new opaque info.


[Modula-3 home page]

m3-request@src.dec.com
Last modified on Tue Sep 26 14:47:48 PDT 1995 by heydon 
     modified on Fri Sep 16 08:01:52 PDT 1994 by kalsow 
     modified on Thu Jan  7 18:40:57 PST 1993 by muller