C/C++ Development Suite
Login
Introduction
Summary of changes from 5.54 to 5.55
Summary of changes up to 5.60
Summary of changes from 5.61 to 5.64
Halfword memory access
Packed structs
Inline assembler
C99 pragmas
Constant data
Global data controls
New/changed options

Downloads
Downloads Year 2

   

Constant data

Constant data is now placed in a read-only data area called C$$constdata.

For applications, the only benefit is that DDT (or any other debugging mechanism) can write-protect the constant data to help check for bugs.

For modules, constant data does not need to be copied into the module workspace, but can be used in-situ in the module body, saving RAM (and the speed hit of the run-time relocation). However, to prevent linking problems, constant data with external linkage will remain in C$$data and be copied into the module workspace.

© 2003/2006 Castle Technology Ltd 32-bit RISC OS