Compiler

Invoking the compiler directly is possible, but requires expert knowledge of the myriad command line parameters. You should use m3build instead.

The m3 command invokes the SRC Modula-3 compiler. It compiles and links Modula-3 compilation units and objects to produce a program or library. It behaves like a typical Unix C compiler cc.

The syntax for invoking the compiler is

    m3 [options] [files] [libraries] 
The order of arguments is generally not significant. The order of the search path options (-D and -L) and libraries (-l) are significant.

The derived files produced by m3 (objects, libraries, and programs) are placed in the directory where m3 is invoked. We call that directory the derived directory.

m3 parses the command line and invokes the compiler passes and linker as required. m3 tells the compiler where to seek imported interfaces and where to find the Modula-3 runtime and standard libraries.

The full path names of the compiler and runtime library are not configured into m3. They are defined by m3build.

More information is available on the following topics:


[Modula-3 home page]

m3-request@src.dec.com
Last modified on Thu Jan  4 11:09:09 PST 1996 by heydon
     modified on Thu Apr 21 11:41:42 PDT 1994 by kalsow
     modified on Fri Feb  7 00:38:19 PST 1992 by muller
Copyright (C) 1992, 1996, Digital Equipment Corporation. All rights reserved.
See the COPYRIGHT for a full description.