[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
code68020

Description:
Controls object code generation for Motorola 680x0 (and higher) processors.
Compatibility:
This pragma is compatible with the following platform targets:
Prototype:
#pragma code68020 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 MC68020. The resulting object code runs on a Power Macintosh or a Macintosh with a MC68020 or MC68040. The code will probably crash on a Macintosh with a MC68000. When this option is off, the compiler generates code that will run on any Macintosh or embedded 68K processor.
WARNING!
Do not change this option's setting within a function definition.
On Mac OS, before your program runs code optimized for the MC68020, use the gestalt() function to make sure the chip is available. For more information on gestalt(), see Chapter "Gestalt Manager" in Inside Macintosh: Operating System Utilities.
In the Mac OS compiler, this option is off by default.
This pragma corresponds to the 68020 Codegen option in the 68K Processor settings panel. To check whether this option is on, use __option (code68020), 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