Show quoted text 13 lines
ok, thanks. Now I understand the relationship between the 'make' files!
Geoffrey

Mailing lists / fpc-devel / 2010-04
5 messages · 2 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
ok, thanks. Now I understand the relationship between the 'make' files!
Geoffrey
I assume this is the one in 'ifeq ($ARCH),arm)' in makefile.fpc
and overriding the FPC_OPT to include -Cpcortexm3
I understand the crosscompiler option -Cpcortexm3, but how do I regenerate the rtl?
Geoffrey
Yes, change Makefile.fpc so instead of:
"ifeq ($(ARCH),arm)
CPU_UNITS=lpc21x4 at91sam7x256
endif"
it says:
"ifeq ($(ARCH),arm)
CPU_UNITS=stm32f103
endif"
Then run fpcmake -Tall in the rtl/embedded dir
Then you can build the compiler and rtl again using "make buildbase CPU_TARGET=arm OS_TARGET=embedded CROSSINSTALL=1 CROSSOPT="-Cpcortexm3 -O-""
Thanks, I would never have guessed the CROSSOPT in quotes. I can now see thumb2 code in the object file.
Next step try it with hardware :-)
Geoffrey
What kind of hardware are you going to test it on?