[fpc-devel] DIFF patch for changing to table driven processor definitions for ARM

David Welch dwelch at dwelch.com
Fri Aug 26 16:53:49 CEST 2011

need to apply this patch, like the wiki thing maybe there is a place I
have to sign up to be able to check in to svn, otherwise.  The lpc and
sam7 parts are ARM7TDMI which is an armv4t not remotely able to
support the armv7 instructions.  the correction also needs to be made
to allow armv7m or cortexm3.  If we are going to mix the architecture
(armv7m) and marketings name for the core (cortexm3) we should be
consistent and start doing things like provide an arm7tdmi for the
other two families.  LIkewise anywhere it says if cortexm3 it should
say if cortexm3 or armv7m then.  if armv4 or if armv4t or if arm7tdmi
then...   Ideally not use the name cortexm3 and instead only use
armv7m.  Have a wiki page or readme that says if stellaris or stm32 or
lpc1xxx then armv7m if lpc2xxx or sam7 or generic arm then armv4...

Index: rtl/embedded/Makefile
--- rtl/embedded/Makefile	(revision 18854)
+++ rtl/embedded/Makefile	(working copy)
@@ -317,7 +317,7 @@
 ifeq ($(SUBARCH),cortexm3)
 CPU_UNITS=lm3fury lm3tempest thumb2_bare stm32f103
-ifeq ($(SUBARCH),armv7)
+ifeq ($(SUBARCH),armv4)
 CPU_UNITS=lpc21x4 at91sam7x256

On Fri, Aug 26, 2011 at 5:17 AM, John Clymer <john at johnclymer.net> wrote:
> Part of what I submitted was 2 batch files in the root directory -
> buildarm.bat and buildthumb2.bat - that was my attempt to provide an example
> with the BINUTILS equates spelled out.
> John
> ________________________________
> From: David Welch <dwelch at dwelch.com>
> To: FPC developers' list <fpc-devel at lists.freepascal.org>
> Sent: Fri, August 26, 2011 6:17:43 AM
> Subject: Re: [fpc-devel] DIFF patch for changing to table driven processor
> definitions for ARM
> Can someone with the power to update the wiki (maybe we all do I dont know)
> change the target embedded page to reflect the SUBARCH thing?
> Also either put a link to
> http://wiki.lazarus.freepascal.org/Binutils
> or spell out something like this:
> ./configure --target=arm-linux --prefix=/something/something/
> --program-prefix=arm-embedded- --disable-werror
> For the non-windows folks so we can play too.  Too me a while to figure out
> why I was not even able to build per the target embedded instructions.
> Thanks,
> David
> On 08/25/2011 10:13 PM, David Welch wrote:
>> cpuinfo.pas(156,2) Fatal: Can't open include file "controllerunit.inc"
>> On 08/25/2011 05:50 PM, Florian Klämpfl wrote:
>>> OS_TARGET=embedded CPU_TARGET=arm SUBARCH=cortexm3
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

More information about the fpc-devel mailing list