Sign in Join

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

Mailing lists / fpc-devel / 2013-08

crosscompile X->Y on Z

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marco van de Voort

Is it possible to crosscompile a compiler (just the compiler) for a architecture X, the compiler itself hosted on arch,os= Y while doing this on arch,os Z.

Mostly thinking about building go32v2 hosted tools that target 8086 on Windows. (well strictly arch Y = arch Z then)

Reply by email

Florian Klämpfl
to Marco van de Voort
Show quoted text 8 lines
Is it possible to crosscompile a compiler (just the compiler) for a architecture X, the compiler itself hosted on arch,os= Y while doing this on arch,os Z. Mostly thinking about building go32v2 hosted tools that target 8086 on Windows. (well strictly arch Y = arch Z then)

Not that I am aware of, at least not in one make command.

Show quoted text 5 lines
_______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Florian Klämpfl
to Marco van de Voort: Is it possible to crosscompile a compiler (just the compiler) for a architecture X, the…
Marco van de Voort wrote
Mostly thinking about building go32v2 hosted tools that target 8086 on Windows. (well strictly arch Y = arch Z then)

For the record, it can be achieved with (empty line=line break)

cd fpc

make clean all crossinstall OS_TARGET=msdos CPU_TARGET=i8086 INSTALL_PREFIX=c:\tmp

make clean all OS_TARGET=go32v2

cd compiler

make all install PPC_TARGET=i8086 FPC=%CD%\ppcross386.exe OS_TARGET=go32v2 INSTALL_PREFIX=c:\tmp

Just tested on 64 Bit windows :) Testing compilation on WinXP witht the go32v2 cross compiler failed though because I forgot CROSSOPT=-CX so I got exceeded segment limits when linking.

Reply by email