6 UNIX platforms

6.5 New MIPS and SPARC compiler options

There are two new compiler options: one applicable only to SPARC-based machines, and one only to MIPS-based machines.

The SPARC option compiles code for version 7 of the SPARC processor. Because this processor does not have an integer multiplication instruction, we emulate it in software. In practice, most operating systems emulate the instruction anyway, so this option is only rarely required. The option is turned off by default.

The MIPS option compiles code for the R4000 and later processors. Earlier MIPS processors do not have load-delay interlocking, and so code generated for them adds no-op instructions to the code where instruction-scheduling is unable to fill load-delay slots. When this option is on, the compiler does not generate these no-ops. The option is turned off by default.

The ML interface to these options is in Shell.Options.Compiler:

val mipsR4000andLater : bool option

val sparcV7: bool option

The options can also be invoked from the command line when running the compiler in batch mode with mlbatch:

-mips-r4000-and-later [on|off]

-sparc-v7 [on|off]

The Preferences > Details > Compiler dialog lists these options on the appropriate architectures.


MLWorks Version 1.0r2 Release Notes - 1 JUL 1997

Generated with Harlequin WebMaker