Does anyone know why const data is placed in the (very limited) heap instead
of code space?
e.g.:
const char * const s[8] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' };
takes up 32 bytes of heap. As far as I can tell, at least the strings are
not in the heap.
It is worse for non-string data
const long a[5] = { 1, 2, 3, 4, 89000, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };
takes up 60 bytes of heap.
Is there some other way of doing this short of putting it in a database? It
aught to just compile as specified (not in dynamic heap space).
Phil Lamoreaux
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/