Compiling for non-MAU systems

Paul S. R. Chisholm psrc at pegasus.ATT.COM
Fri Jan 27 09:37:25 AEST 1989


<"He seemed like such a nice man . . . and then he turned out to be a writer!">

Whoever compiles the Info-3B2 Digest passed along a question about
building a product that will run on a 3B2 without a Math Accelerator
Unit (MAU).

The -K flag (described in some version of TFM, cc(1)) controls such
options.  As described in the CPLU 4.2 Release Notes (now, aren't you
embarrassed that that wasn't the first place you looked?-), there are
three possibilities.  -Kmau (probably the default) generates code for
an MAU.  -Kfpe ("floating point emulation") compiles your program to
run on a 32100- or 32200-based system (that is, anything but a
3B2/300).  -Kc ("compatibility") produces .o and a.out files that will
run on any 3B2 ever made.

While your reading the release notes, you should notice that -Ksd (or
is it -Ksp? anyway, the default) tells the optimizer to increase your
program's speed, while -Ksz will improve (decrease) your software's
size.

Paul S. R. Chisholm, psrc at pegasus.att.com (formerly psc at lznv.att.com)
AT&T Bell Laboratories, att!pegasus!psrc, AT&T Mail !psrchisholm
I'm not speaking for the company, I'm just speaking my mind.



More information about the Comp.sys.att mailing list