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


pool_strings

Description:

Controls how string literals are stored.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800

Intel x86

MIPS

Embedded 68K

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

If the pragma pool_strings in the C/C++ Language Panel is on, the compiler collects all string constants into a single data object so your program needs one TOC entry for all of them. If this pragma is off, the compiler creates a unique data object and TOC entry for each string constant. Turning this pragma on decreases the number of TOC entries in your program but increases your program's size, since it uses a less efficient method to store the string's address.

This pragma is especially useful if your program is large and has many string constants or uses the Metrowerks Profiler.


NOTE

If you turn the pool_strings pragma on, the compiler ignores the setting of the pcrelstrings pragma.

This pragma corresponds to the Pool Strings option in the C/C++ Language Panel. To check whether this option is on, use __option (pool_strings), 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