readonly_strings. NXP CodeWarrior Development Studio
Anuncio
Anuncio
readonly_strings
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 for each string constant. While this decreases the number of data sections in your program, on some processors 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 CodeWarrior Profiler.
NOTE
If you enable this pragma, the compiler ignores the setting of the pcrelstrings
pragma.
34.13 readonly_strings
Controls whether string objects are placed in a read-write or a read-only data section.
Syntax
#pragma readonly_strings on | off | reset
Remarks
If you enable this pragma, literal strings used in your source code are output to the readonly data section instead of the global data section. In effect, these strings act like constchar*
, even though their type is really char*
.
This pragma does not correspond to any IDE panel setting.
34.14 reverse_bitfields
Controls whether or not the compiler reverses the bitfield allocation.
Syntax
#pragma reverse_bitfields on | off | reset
Remarks
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
526 Freescale Semiconductor, Inc.
Descargar
Anuncio