Compiling item -Replace constants-

Question:
Does the compiling item Replace constants save memory space?

Answer:
Yes, you can save memory capacity. If in a DDS project, constants i.e. variables of class CONSTANT are used, these variables use memory space according to the data type used. This memory space is no longer available for other variables.
If you select Replace constants in the DDS menu under Project\ Options\ Build, no variable memory is reserved for the declared variables of class CONSTANT. The value of the constants is saved in the system, no memory is used in the RAM and thus this memory space can be used for other variables.
The compiling item Replace constants affects local and global constants and constants which are linked to the DDS project via libraries.
Exception: For variables of class CONSTANT of data type STRING memory space is always reserved.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/20038618/1/
Kontaktformular