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


toc_data

Description:

Controls how static variables are stored.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800
Intel x86
MIPS
Embedded 68K

Prototype:
  #pragma toc_data on | off | reset Remarks:

This pragma applies to Mac OS CFM programming only.

If the toc_data pragma is on, the compiler makes your code smaller and faster by storing static variables that are 4 bytes or smaller directly in the TOC, instead of allocating space for them elsewhere and storing pointers to them in the TOC. Turn this pragma off only if your code expects the TOC to contain pointers to data.

This pragma corresponds to the Store Static Data in TOC option in the PPC Processor settings panel. To check whether this option is on, use __option (toc_data), 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