Compiling programs

The program that builds Modula-3 programs is cm3. In fact cm3 is both a compiler and a builder. It is used in preference to make, in part because Modula-3 uses a more sophisticated dependency analysis than make, and in part to provide a smaller, simpler, and more portable descriptions than are found in most makefiles.

Before diving into a detailed description of cm3, consider the following simple example.