[fpc-devel]FPC for Amiga/68k

Florian Klaempfl Florian.Klaempfl at gmx.de
Fri Nov 22 13:46:10 CET 2002

At 13:24 22.11.2002, you wrote:
>On 22-Nov-02, Florian Klaempfl wrote:
> >> My questions are: How much effort would be needed to get
> >> an up-to-date Amiga/68k compiler? What's need to be done?
> > Afaik the current 1.0.7 cvs version works on UAE. However,
> > there is no snapshot available yet, i.e. you've to cross
> > compile it yourself :)
>Ahem, well... :)

Hmmm, Carl-Eric Codere maintains the Amiga port so he
should answer, but I'll try :)

>On what system it is possible to generate
>the 68k-hosted/targeted compiler? I've no Linux/68k here.
>Is it possible on Linux/x86? What additional tools
>(eg. cross-linker) needed and are these available from
>somewhere on the net?

I don't think so.

But if you've a as/ld for AmigaOS, it should be enough.
You can compile on i386 linux/win32 or whatever.

1. Get 1.0.7 via cvs
2. make cycle in the 1.0.7 compiler dir
3. del *.ppw (or *.ppu)
4. make CPU_TARGET=m68k

At this point you've a ppc68k, i.e. a fpc with m68k as target.

5. Now switch to fixes/rtl/amiga and do a
    make PP=c:\fpc\fixes\compiler\ppc68k OPT=-s
    then you get a couple of .asm and .as files. Move them
    to the amiga and assemble them there.

6. Go back fixes/compiler
7. renanme ppc68k.exe to pp.exe
8. do a make PP=c:\fpc\fixes\compiler\pp CPU_TARGET=m68k OS_TARGET=amiga OPT=-s
9. now you get another couple of .asm files, move them again to the amiga,
    assemble them with a GNU AS for Amiga and link them together to a amiga 
hosted pp.


More information about the fpc-devel mailing list