#134523 - cuse - Fri Jul 13, 2007 4:20 pm
Hi!
Is there a way to tell gcc which one of the various RAMs it shall use for certain data?
For example I just tried to add an additional, global array in my application C code:
thus a memory space of 38kB, but that causes that array to overlap with other, already occupied memory areas of the GBA. I guess because gcc puts global variables into the small, internal RAM, which is limited to 32kB.
Can I tell gcc to use the external RAM for that array instead? Probably some kind of gcc __attribute__() ?
Is there a way to tell gcc which one of the various RAMs it shall use for certain data?
For example I just tried to add an additional, global array in my application C code:
Code: |
unsigned char foo_buffer[SCREENWIDTH][SCREENHEIGHT]; |
thus a memory space of 38kB, but that causes that array to overlap with other, already occupied memory areas of the GBA. I guess because gcc puts global variables into the small, internal RAM, which is limited to 32kB.
Can I tell gcc to use the external RAM for that array instead? Probably some kind of gcc __attribute__() ?