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


readonly_strings

Description:

Controls how to store string literals.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800

Intel x86

MIPS

Embedded 68K

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

This pragma corresponds to the Make Strings ReadOnly option in the PPC Processor, MIPS, and V800 Processor panels. To check whether this option is on, using #if __option (readonly_strings), see "Checking Options."


PowerPC, NEC V800, and MIPS

This option determines where to store string constants. If this option is off, the compiler stores string constants in the data section. If this option is on, the compiler stores string constants in the code section.


NOTE

Variables that are not initialized to the address of another object at run time are always placed in the code section (class RO). This includes C/C++ variables declared with the const storage-class modifier.

Embedded 68K

When off, depending on the size, strings are placed into initialized data sections .data or .sdata.


[ 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