#80482 - Obelix - Sat Apr 22, 2006 6:02 pm
Hi all !
I'm just using the latest version of devkitarm (R18 with GCC 4.1.0) to compile a small code for GBA, and I have some problems. Maybe someone could help me.
1 - When I use the -S option to output the assembly code generated by gcc, the extension is .o instead of .s. This is not a big problem, but do you know why ?
2 - More important : I want to compile C source code in ARM mode.
This was working fine in my previous projet with devkitadv. But with devkitarm r18, the assembly code generated is still thumb code.
I've tried many different syntax, using "__attribute__ ((section (".iwram"), long_call))", calling my source file "xxx.iwram.c", etc., but nothing work.
With "__attribute__ ((section (".iwram"), long_call))",
- the assembly code generated contains the line :
.section .iwram,"ax",%progbits
- the map file show the code is in iwram at 0x03000000 adress
but the code use the Thumb instruction set !!!
Do you know if there is another configuration to specifiy ?
Thanks in advance for your help.
--
Philippe
_________________
--
Philippe aka Obelix
I'm just using the latest version of devkitarm (R18 with GCC 4.1.0) to compile a small code for GBA, and I have some problems. Maybe someone could help me.
1 - When I use the -S option to output the assembly code generated by gcc, the extension is .o instead of .s. This is not a big problem, but do you know why ?
2 - More important : I want to compile C source code in ARM mode.
This was working fine in my previous projet with devkitadv. But with devkitarm r18, the assembly code generated is still thumb code.
I've tried many different syntax, using "__attribute__ ((section (".iwram"), long_call))", calling my source file "xxx.iwram.c", etc., but nothing work.
With "__attribute__ ((section (".iwram"), long_call))",
- the assembly code generated contains the line :
.section .iwram,"ax",%progbits
- the map file show the code is in iwram at 0x03000000 adress
but the code use the Thumb instruction set !!!
Do you know if there is another configuration to specifiy ?
Thanks in advance for your help.
--
Philippe
_________________
--
Philippe aka Obelix