Sign in Join

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

Mailing lists / fpc-pascal / 2023-10

free pascal compiler on Linux Red Hat for target motorola 68k

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

LECUYER Philippe

Hi,
I search a free pascal cross compiler (for host Linux Red hat 7.x and target Motorola 68k) I test the last 3.2.2 version but I doesn't find the option for target Motorola 68k (fpc -help) It's run when I compile an example (in examples directory) and execute on Linux RH 7.x but I want to produce the binary for 68k target. Thanks for helping me.
Regards

Sven Barth
to LECUYER Philippe

LECUYER Philippe via fpc-pascal schrieb
am Sa., 14. Okt. 2023, 15:16:

Show quoted text 13 lines
Hi, I search a free pascal cross compiler (for host Linux Red hat 7.x and target Motorola 68k) I test the last 3.2.2 version but I doesn’t find the option for target Motorola 68k (fpc –help) It’s run when I compile an example (in examples directory) and execute on Linux RH 7.x but I want to produce the binary for 68k target. Thanks for helping me.

You need to build a suitable compiler. For this you download the source (either 3.2.2 or the development version 3.3.1) and do a make:

make all CPU_TARGET=m68k OS_TARGET=linux BINUTILSPREFIX=<prefix> FPMAKEOPT="-T <count>" - j <count>

Where <prefix> is the prefix of the binutils for 68k (as and ld, e.g. m68k-linux-gnu-) and <count> is the number of CPU cores you have.

After that you do a

make install CPU_TARGET=m68k OS_TARGET=linux BINUTILSPREFIX=<prefix> INSTALL_PREFIX=/path/to/the/destination

Depending on the destination path you need to do that as root.

There are further details, but I can't describe them right now, so don't hesitate to ask if you have issues.

Regards,
Sven