[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
code68881

Description:
Controls object code generation for Motorola 68881 (and higher) math coprocessors.
Compatibility:
This pragma is compatible with the following platform targets:
Prototype:
#pragma code68881 on | off | reset
Remarks:
This pragma applies to 68K programming only.
When this option is on, the compiler generates code that's optimized for the MC68881 floating-point unit (FPU). This code runs on a Macintosh with an MC68881 FPU, MC68882 FPU, or a MC68040 processor. (The MC68040 has a MC68881 FPU built in.) The code does not run on a Power Macintosh, a Macintosh with an MC68LC040, or a Macintosh with any other processor and no FPU. When this option is off, the compiler generates code that will run on any Macintosh.
WARNING!
If you use the code68881 pragma to turn this option on, place it at the beginning of your file, before you include any files and declare any variables and functions.
Before your program runs code optimized for the MC68881, use the gestalt() function to make sure an FPU is available. For more information on gestalt(), see Chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.
This pragma corresponds to the 68881 Codegen option in the 68K Processor settings panel. To check whether this option is on, use __option (code68881), described in "Checking Options."
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000