[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Declaring Variables By Address

(K&R, §A8.7) The C compiler lets you specify the address that a variable refers to. For example, this definition defines MemErr to contain whatever is at the address 0x0220:
short MemErr:0x220;
The variable MemErr contains whatever is at the address 0x220.
WARNING!
For Mac OS programming, avoid using this extension to refer to low-memory globals. To ensure that your programs are compatible with future versions of the Mac OS, use the functions defined in the LowMem.h header file of the Mac OS Universal Header files.
This extension cannot be turned off. There is no corresponding pragma or setting in the C/C++ Language Panel.
[ 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