Sign in Join

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

Mailing lists / fpc-devel / 2005-08

fpc.cfg format

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Robert Reimiller

On the off chance that the new ppcarm compiler and units I just built will work with a big endian ARM, I am trying to figure out how to actually build a test program.

Is it possible to use the Lazarus IDE to edit and compile/assemble/link? I changed the compiler path to the new compiler and made sure spurious command line options were off.

I get a message indicating it can't run the assembler and is switching to external assembling. Someone else had this problem back in May and got the response "The newer compilers requires an updated fpc.cfg and that the assembler is called e.g. arm-linux-as and arm-linux-ld."

I haven't been able to find any documentation that shows the format of this new fpc.cfg and how you set the assembler and linker. Can anybody help?

If Lazarus can't be used, how about Kdevelop?

Reply by email

Mattias Gaertner
to Robert Reimiller
Show quoted text 5 lines
On the off chance that the new ppcarm compiler and units I just built will work with a big endian ARM, I am trying to figure out how to actually build a test program. Is it possible to use the Lazarus IDE to edit and compile/assemble/link?

Yes.
We just need to add the new target and maybe add some paths, so that the IDE finds all arm sources in the fpc sources. At least that's what was needed to get sparc support.
What's the OS, what's the processor? linux, arm?

Where can I get the cross .ppu to test it?

Mattias

Show quoted text 19 lines
I changed the compiler path to the new compiler and made sure spurious command line options were off. I get a message indicating it can't run the assembler and is switching to external assembling. Someone else had this problem back in May and got the response "The newer compilers requires an updated fpc.cfg and that the assembler is called e.g. arm-linux-as and arm-linux-ld." I haven't been able to find any documentation that shows the format of this new fpc.cfg and how you set the assembler and linker. Can anybody help? If Lazarus can't be used, how about Kdevelop? _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Oro06
to Mattias Gaertner
Mattias Gaertner wrote 21 lines
On Mon, 22 Aug 2005 16:25:26 -0700 "Robert Reimiller" wrote: >On the off chance that the new ppcarm compiler and units I just built >will work with a big endian ARM, I am trying to figure out how to >actually build a test program. > >Is it possible to use the Lazarus IDE to edit and compile/assemble/link? > > Yes. We just need to add the new target and maybe add some paths, so that the IDE finds all arm sources in the fpc sources. At least that's what was needed to get sparc support. What's the OS, what's the processor? linux, arm?

actually working on wince api port,
targets are : wince-arm, wince-i386

will have a look to lazarus for crossplateform work :) Olivier

Show quoted text 7 lines
Where can I get the cross .ppu to test it? Mattias
Show quoted text 29 lines
>I changed the compiler path to the new compiler and made sure >spurious command line options were off. > >I get a message indicating it can't run the assembler and is switching >to external assembling. Someone else had this problem back in May and >got the response "The newer compilers requires an updated fpc.cfg and >that the assembler is called e.g. arm-linux-as and arm-linux-ld." > >I haven't been able to find any documentation that shows the format of >this new fpc.cfg and how you set the assembler and linker. Can >anybody help? > >If Lazarus can't be used, how about Kdevelop? > > > >_______________________________________________ >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

Peter Vreman
to Robert Reimiller: On the off chance that the new ppcarm compiler and units I just built will work with a…
you wrote 16 lines
On the off chance that the new ppcarm compiler and units I just built will work with a big endian ARM, I am trying to figure out how to actually build a test program. Is it possible to use the Lazarus IDE to edit and compile/assemble/link? I changed the compiler path to the new compiler and made sure spurious command line options were off. I get a message indicating it can't run the assembler and is switching to external assembling. Someone else had this problem back in May and got the response "The newer compilers requires an updated fpc.cfg and that the assembler is called e.g. arm-linux-as and arm-linux-ld." I haven't been able to find any documentation that shows the format of this new fpc.cfg and how you set the assembler and linker. Can anybody help?

There is nothing special required for arm. For cross compiling to the arm it is the best to add the following lines to fpc.cfg so the compiler the arm-linux-as and arm-linux-ld. But they can also be provided everytime on the commandline.

#ifdef cpuarm
-XParm-linux-
#endif

If you are building things with the Makefiles you need to provide the BINUTILSPREFIX like

make BINUTILSPREFIX=arm-linux-

the Makefile will then use this prefix for assembling the loaders and pass it to the compiler with the -XP commandline option.

Peter

Reply by email