Pooling Strings

The Pool Strings setting in the C/C++ Language Panel controls how the compiler stores string constants.

If you enable this setting, the compiler collects all string constants into a single data object so that your program needs only one TOC (table of content) entry for all of them. While this decreases the number of TOC entries in your program, it also increases your program size because it uses a less efficient method to store the address of the string.

If you disable this setting, the compiler creates a unique data object and TOC entry for each string constant.

Enable this setting if your program is large and has many string constants.

The Pool Strings setting corresponds to the pragma pool_strings. To check this setting, use __option (pool_strings). By default, this setting is disabled. See also pool_strings and Checking Pragma Settings.