Mein Ziel ist es Progamme für alte DOS Rechner zu programmieren... Bzw. mal zu sehen, wie einfach das geht...
Ich versuche ein hello world für 8086 dos zu kompilieren und orientiere mich dazu an: https://wiki.freepascal.org/DOS
Ich hab fpc-3.2.0.x86_64-linux.cross.i8086-msdos.tar.xz lokal ausgepackt...
So sieht es aus:
Code: Alles auswählen
./bin/ppcross8086 -WmTiny hello_world.pas
Fatal: Can't find unit system used by helloworld
Fatal: Compilation aborted
Code: Alles auswählen
#IFDEF CPUI8086
-Fu/home/blablabla/fpc-i8086/snapshot/$fpcmemorymodel/lib/fpc/$fpcversion/units/$fpctarget
-Fu/home/blablabla/fpc-i8086/snapshot/$fpcmemorymodel/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/home/blablabla/fpc-i8086/snapshot/$fpcmemorymodel/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF
Code: Alles auswählen
#IFDEF CPUI8086
-Fu./lib/fpc/$fpcversion/units/$fpctarget
-Fu./lib/fpc/$fpcversion/units/$fpctarget/*
-Fu./lib/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF
Mit ein wenig rumspielen bin ich zu: -Fu./lib/fpc/$fpcversion/units/$fpctarget/8086-tiny/rtl gekommen. Was nur bei -WmTiny funktioniert.
Ich vermute den 8086-tiny Teil kann man auch mit einem Platzhalter ersetzten, oder? Aber wie lautet der?