#110391 - ingramb - Tue Nov 28, 2006 5:45 am
The topic pretty much says it all. It looks like the template makefile included with devkitpro is putting my .data and .bss sections in iwram by default. I want them in ewram by default (and possibly in iwram with the IWRAM_DATA macro).
How can I do this? Thanks in advance.
#110479 - gmiller - Tue Nov 28, 2006 8:56 pm
Are you sure it puts the data and bss there? Mine defaults to code in ROM, data in EWRAM, stack and heap in EWRAM and nothing by default in IWRAM. Of course this is for GBA development.
#110481 - tepples - Tue Nov 28, 2006 9:03 pm
Is there a reason why you can't declare specific variables into specific sections?
Code: |
char stuff[10000] __attribute__ ((section (".sbss"))); |
However, use of .sbss in a multiboot will interfere with use of appended data files.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#110512 - ingramb - Tue Nov 28, 2006 11:31 pm
>Is there a reason why you can't declare specific variables into specific sections?
This is what I've started doing, and it works fine. It would be nice if there was an easy way to make everything default to iwram rather than ewram though.
>However, use of .sbss in a multiboot will interfere with use of appended data files.
Multiboot isn't a concern for me.