#168319 - kusma - Tue Apr 21, 2009 2:13 pm
I've noticed a significant slow-down in a lot of my code in recent releases of devkitARM. After some simple checking, it turns out some of my code isn't put in IWRAM anymore (as it used to be).
I usually compile the code I want in IWRAM from file.c to file.iwram.o, and have the link-script handle stuffing it into IWRAM. Well, on more recent releases, this doesn't seem to be the case.
Adding "__attribute__((section (".iwram"), long_call))" doesn't help me much either, I keep getting the error "error: some_array causes a section type conflict". "some_array" is an array that is supposed to be in IWRAM as well, and is decleared with "__attribute__((section (".iwram")))". These attributes correspond to the IWRAM_CODE and IWRAM_DATA macros in libgba.
Does anyone know why? The code in the linkscript (in this case $(DEVKITPRO)/devkitARM/arm-eabi/lib/gba_cart.ld) seems like it still tries to do so; "*(EXCLUDE_FILE (*.iwram*) .text)" is located in the .text-section, and "*iwram.*(.text)" is located in the .iwram-section.
edit: changed the topic subject to better match the findings.
Last edited by kusma on Thu Apr 23, 2009 9:10 am; edited 1 time in total
I usually compile the code I want in IWRAM from file.c to file.iwram.o, and have the link-script handle stuffing it into IWRAM. Well, on more recent releases, this doesn't seem to be the case.
Adding "__attribute__((section (".iwram"), long_call))" doesn't help me much either, I keep getting the error "error: some_array causes a section type conflict". "some_array" is an array that is supposed to be in IWRAM as well, and is decleared with "__attribute__((section (".iwram")))". These attributes correspond to the IWRAM_CODE and IWRAM_DATA macros in libgba.
Does anyone know why? The code in the linkscript (in this case $(DEVKITPRO)/devkitARM/arm-eabi/lib/gba_cart.ld) seems like it still tries to do so; "*(EXCLUDE_FILE (*.iwram*) .text)" is located in the .text-section, and "*iwram.*(.text)" is located in the .iwram-section.
edit: changed the topic subject to better match the findings.
Last edited by kusma on Thu Apr 23, 2009 9:10 am; edited 1 time in total