On 2005-06-10, nthamer n <[EMAIL PROTECTED]> wrote:
> Ton,
>
> Thanks for your reply
>
>> - Do *not* specify a section for a global variable.
>> If you do, there is a chance of overlapping variable 
>> references (as you noticed).
>
> So if I did
> - var1 in default section
> - var2 in section 1
>
> The compiler would generate code to access:
> - var1 at offset 0 in default section
> - var2 at offset 0 in in section1
>
> But the the linker creates one section for all data
> So var1 and var2 overlap
>
> Correct?
>

Yes, it is a bit more complicated than this, but the references to the
global variables generated in the code have this efect.
  

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

Reply via email to