"Regis St-Gelais" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Ben,
>
> "Ben Combee" <[EMAIL PROTECTED]> a �crit dans le message de
> news:[EMAIL PROTECTED]
>
> > This is due to having the "PC-relative const data" switch on.  This make
> > constant data accessed through the PC, which only allows intra-segment
> > references.  Turning that off would push the constant data into the data
> > segment where it can be seen by all.
> >
> But if I turn off the "PC-relative const data" my const will be put in the
> global data segment, wont they?
> My goal was to reduce my usage off the global data segment so I can put
> variables in it.
>
> I thing I will use the tSTL aproach to store my const strings.
>
> -- 
> Regis St-Gelais, P. Eng. / ing.
> Software Development / D�veloppement informatique
> www.laubrass.com

Why not use a static const array with a global pointer to it. That way the
data in read-only memory but you only access it from a global pointer, which
will only take 4 bytes in the data segment...

Peter



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to