[<<][c][>>][..]
Tue Sep 7 09:10:01 CEST 2010

The meaning of `const' (.rodata section)

One often hears that ``const is broken'' which means that it is
possible in C to get an unrestricted pointer to const data.

However, on a more pragmatic side, the `const' qualifier does tell the
compiler that the data is _intended_ to be constant, and as such it
can be put in a separate linker section `.rodata'.

This section can then be put in (p)ROM.  I.e. for ARM uC it can go
into program Flash.




[Reply][About]
[<<][c][>>][..]