### pool_strings

Controls how string literals are stored.

##### Syntax

#pragma pool_strings on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler collects all string constants into a single data object so your program needs one data section for all of them. If you disable this pragma, the compiler creates a unique data object and TOC entry for each string constant. While this decreases the number of data sections in your program, on some processors, like the PowerPC, it also makes your program bigger because it uses a less efficient method to store the address of the string.

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

NOTE If you enable this pragma, the compiler ignores the setting of the pragma pcrelstrings.

This pragma corresponds to the Pool Strings setting .

NOTE A compiler may override this panel setting in a processor-specific code generation panel.

To check this setting, use __option (pool_strings), described in Checking Settings.