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
        }


However, if I want to initialize a struct, this become kinds of
unwieldy.

Any hints?

- Ioi

-- 
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