Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-08

thumb2 code generation

3 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

David Welch

Someone pointed me at this page:

http://wiki.freepascal.org/TARGET_Embedded

And I started adding a device (and perhaps more after that), starting with a cortex-m3 though which is thumb/thumb2 only.

Following the instructions on the page work fine:

fpc -Parm -Tembedded -Wplpc2124 tled1.pp

Added my device as well as tried the two other cortex-m3 devices and

fpc -Parm -Tembedded -Wpdevice test.pp

I tried -Parm, -Pthumb, thumb2, cortex-m3 but it just keeps generating arm instructions. I can certainly target an arm processor first but would rather try a thumb/thumb2 first.

Thanks,
David

Reply by email

David Welch
to David Welch

Actually I would prefer thumb first then thumb2 cpuinfo.pas does not have an architecture tied to thumb but the cortexm3 and armv7m can be easily moved to thumb temporarily or create say a cpu_cortexm3_thumb in the tcputype list, etc...

David

David Welch wrote 27 lines
Someone pointed me at this page: http://wiki.freepascal.org/TARGET_Embedded And I started adding a device (and perhaps more after that), starting with a cortex-m3 though which is thumb/thumb2 only. Following the instructions on the page work fine: fpc -Parm -Tembedded -Wplpc2124 tled1.pp Added my device as well as tried the two other cortex-m3 devices and fpc -Parm -Tembedded -Wpdevice test.pp I tried -Parm, -Pthumb, thumb2, cortex-m3 but it just keeps generating arm instructions. I can certainly target an arm processor first but would rather try a thumb/thumb2 first. Thanks, David _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel .

Reply by email

David Welch
to David Welch

Sorry, figured it out -Cpcortexm3

David Welch wrote 42 lines
Actually I would prefer thumb first then thumb2 cpuinfo.pas does not have an architecture tied to thumb but the cortexm3 and armv7m can be easily moved to thumb temporarily or create say a cpu_cortexm3_thumb in the tcputype list, etc... David On 08/19/2011 11:00 PM, David Welch wrote: > > Someone pointed me at this page: > > http://wiki.freepascal.org/TARGET_Embedded > > And I started adding a device (and perhaps more after that), starting > with a cortex-m3 though which is thumb/thumb2 only. > > Following the instructions on the page work fine: > > fpc -Parm -Tembedded -Wplpc2124 tled1.pp > > Added my device as well as tried the two other cortex-m3 devices and > > fpc -Parm -Tembedded -Wpdevice test.pp > > I tried -Parm, -Pthumb, thumb2, cortex-m3 but it just keeps generating > arm instructions. I can certainly target an arm processor first but > would rather try a thumb/thumb2 first. > > Thanks, > David > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel > . _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel .

Reply by email