> Is there a way to put constant data in code segment? I tried
> 
>       const foo[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
> 
> but it still gets put in the "Initialized near data" segment, 
> according
> to the CW7 link map file.
> 
> I can hack around this by using the asm keyword:
> 
>       asm void foo() {
>          DC.L 0x01
>          DC.L 0x02
>       }

Code is code and Data is data.  If you want to pull data out of the data
segment, stick it in a database or other resource.

-hkmlt



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

Reply via email to