Are you doing this for security or are you trying to cut down on heap
usage? You can use assembly language to embed constants in your code
segment(s). You might also want to look at binary resources if you are
just trying to save on heap space.
As for #pragma's, whose tools are you using?
-jjf
-----Original Message-----
From: Oz Shalbar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 30, 2000 3:33 AM
To: Palm Developer Forum
Subject: attaching read-only vars to code
I have a read-only array which I use quite frequently, and I want to
include
it somehow in my code (not on the data section). I've tried to declare
it as
const or as static const, but I think it's sitting somewhere on the
global
data space. I want to know if there's some #pragma that controlls this,
and
some more information about const / static variables.
Thanx in advance.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html