Member attributes: ModeOfStringConstants

This attribute controls the conversion of strings when generating code for a particular profile member. Please note, before the version 9.30 this attribute was named FormatOfStringConstants.





The attribute ModeOfStringConstants determines the mode how constant string contents are stored in the code segment (ROM or flash memory) in the target device. Accordingly it affects the memory allocation and the resource management in Embedded Wizard Runtime Environment. The attribute can assume one of the following values:




The string information is stored in compressed format. This mode requires the constants to be decompressed when the strings are used at the runtime. The decompressed strings are maintained in a string cache occupying additional RAM. On the other hand, compressed strings have less impact on the code segment size (the application requires less ROM or flash memory). This is the default mode.


The string information is stored uncompressed in the native format valid for the target system. In this manner the constants can be accessed directly in the code segment (ROM or flash memory) without an intermediate decompression step into a string cache RAM.

Modify the attribute

To inspect or modify the value of a ModeOfStringConstants attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the assistant you can activate by clicking on the button right to the attribute:

Please note, the attribute can be hidden if the Platform Package selected in the particular profile member doesn't support the direct-access mode for generated string data.