Controls the storage and reference of string literals from the program counter.
Compatibility:This pragma is compatible with the following platform targets:
|
PowerPC
|
NEC V800
|
Intel x86
|
MIPS
|
#pragma pcrelstrings on | off | reset
Remarks:
#pragma pcrelstrings on
int foo(char *);
int x = f("Hello"); // "Hello" is allocated in
// the global data segment
int bar()
{
return f("World"); //"World" is allocated in the code segment
} // (pc-relative)Strings in C++ initialization code are always allocated in the global data segment.
NOTE
pool_strings pragma on, the compiler ignores the setting of the pcrelstrings pragma.
This pragma corresponds to the PC-Relative Strings option in the 68K Processor settings panel. To check whether this option is on, use __option (pcrelstrings), described in "Checking Options." By default, this option is off.