[fpc-pascal] Using arm-embedded-fpc

Carsten Bager carsten at beas.dk
Wed Oct 23 12:09:37 CEST 2013


Have a look at this file
http://freepascal.dk/files/fpcarm7.tgz
This is a 2.05 compiler, but I am still using it in produktion.
This is an old package that uses LPC2138 as target.
Now a days we use LPC2368 and LPC 2387 as target.
The compiler produce good code.
Regards
Carsten


> On Wed, October 23, 2013 11:23, Koenraad Lelong wrote:
> > Hi,
> >
> > Searching the mail from this list it seems there are a number of people
> > that use fpc to compile for arm-embedded.
>  .
>  .
> > fpc at linux-npjb:~/src-arm-fpc> fpc -Parm -Tembedded -Wplpc2124 tled
> > Free Pascal Compiler version 2.7.1 [2013/10/23] for arm
> > Copyright (c) 1993-2013 by Florian Klaempfl and others
> > Target OS: Embedded
> > Compiling tled1.pp
> > Assembling program
> > Linking tled1
> > /usr/bin/arm-embedded-ld: error: no memory region specified for loadable
> > section `.note.gnu.build-id'
> > tled1.pp(54,4) Error: Error while linking
>  .
>  .
> > fpc at linux-npjb:~/src-arm-fpc> arm-embedded-ld link.res
> > fpc at linux-npjb:~/src-arm-fpc> ls -l
> > total 312
> > -rwxr-xr-x 1 fpc users 357294 okt 23 09:33 a.out
> > -rw-r--r-- 1 fpc users    867 okt 23 09:31 link.res
> > -rw-r--r-- 1 fpc users   3164 okt 23 09:31 tled1.o
> > -rw-r--r-- 1 fpc users   1187 okt 23 08:55 tled1.pp
> >
> > That seems to work. Dissassembling a.out seems to produce a valid
> > assembly source. I also tried this with binutils-2.21.1 with the same
> > problem.
> > Is there a way to see what parameters fpc generates to invoke the linker ?
> 
> Are you aware of compiler option -s (or -sh, but that is the default for
> -s if I remember correctly)?
> 
> Tomas
> 
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal





More information about the fpc-pascal mailing list