[fpc-pascal] Could use some help with DOS cross compile

Nikolay Nikolov nickysn at users.sourceforge.net
Sun Oct 20 13:27:47 CEST 2013


On 10/20/2013 01:56 PM, Reinier Olislagers wrote:
> Trying to create dos cross compiler using FPC trunk x86 r25833, Windows
>
> NASM binaries etc from Marco's post [2]
> dir c:\Development\cross\bin\i8086-msdos
> ..
> 02/01/2013  11:06           743,424 msdos-nasm.exe
> 25/05/2010  08:36            33,792 msdos-wlib.exe
> 25/05/2010  08:51            33,792 msdos-wlink.exe
> 02/01/2013  11:06           743,424 nasm.exe
> 25/05/2010  08:36           172,018 wlibd.dll
> 25/05/2010  08:51           395,646 wlinkd.dll
> 25/05/2010  08:51            13,604 wlsystem.lnk
>
> rem DOS binutils first, then trunk compiler+binutils
> set
> path=C:\development\cross\bin\i8086-msdos;C:\Development\fpctrunk\bin\i386-win32
> cd /d c:\development\fpctrunk
> rem clean
> C:\development\fpcbootstrap\make.exe
> "FPC=C:\development\fpcbootstrap\ppc386.exe"
> "--directory=C:\development\fpctrunk"
> "INSTALL_PREFIX=C:\development\fpctrunk"
> "CROSSBINDIR=C:\development\cross\bin\i8086-msdos" "UPXPROG=echo"
> "COPYTREE=echo" "clean" "OS_TARGET=msdos" "CPU_TARGET=i8086"
> "BINUTILSPREFIX=msdos-" "OPT=-gw2 -gl -O-1 -XPmsdos-"
Why are you using

OPT=-gw2 -gl

I'm not sure these work at all. Debugging info for i8086 is not 
implemented and when it is, I doubt it would be in dwarf format :)

Here's the options I use:

make clean all OS_TARGET=msdos CPU_TARGET=i8086 OPT="-CX -XXs" 
CROSSOPT="-XP"

or

CROSSOPT="-XP -WmMedium"

for the medium memory model.

Nikolay



More information about the fpc-pascal mailing list