Den 20-12-2011 21:51, Geoffrey Barton skrev:
I have been trying to cross-compile arm embedded for a cortexm3 using 2.6.0rc1.
I had this working previously with 2.4.0 and stellaris controllers.
Following the instructions on the wiki page 'TARGET_Embedded' and adding
suitable devices into cpuinfo etc. where they have been missed out, I can build
a test program. However disassembling the resulting elf file shows the sections
system_fpc_cpuuint, system_sysinitfpu, fpc_initializeunits,
fpc_initializeunitsetc, system_internalexit, fpc_do_exit, system_system_exit
and init$_system to be 32 bit arm code not thumb2. The rest of the program,
including the stellaris.pp code, are correct thumb2 code.
It appears the armv7m subarch is not being acted on when compiling rtl? I got
the same result if I substituted cortexm3 for this too.
Geoffrey
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
Do you have an example of how you can see it is 32 bit arm code and not
thumb2?
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel