Hi there (likely Joerg Wunsch will know this),

In devices like ATxMega256xxx, I see that the C function tables I
declare, and the function pointers, end up being 16-bit, and so-far
everything seems to assume that EIND is 0 and functions will be in the
first 64K (my current code is not that big yet).

Will avr-gcc use the right relocation when picking one function from the
array and calling it? or should I declare the functions with some
special attribute and/or do some assembler magic with gs() operator when
calling those kind of functions.

So far I see that gcc put some trampoline calls after the interrupt
vectors for some functions, but everything fits within the first 64K so far.

I'm just trying to be sure that when code begin to fall off the first
64K, I'm not going to get funny problems a few weeks later, after I
completely forgot about this thing.

Regards
David

--- This is being re-sent as my company's email is now adding the infamous 
confidential disclaimer ---


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to