Talk:fpcup
From Lazarus wiki
Jump to navigationJump to search
Add section when dos cross comp works:
DOS crosscompiler
Using 32 bit fpcup.exe on Windows, once you have set up a regular FPC trunk/2.7.1 compiler, you can add a DOS cross compiler. Note: the DOS cross compiler is still in development.
Open your settings file or add a new file, settings.ini:
[dos]
; dos cross compiler
; a full fpcup run must have been done before
; please adjust paths etc
fpcdir=c:\development\fpctrunk
fpcurl=http://svn.freepascal.org/svn/fpc/trunk
fpcopt=""
fpcuplinkname=""
lazlinkname=""
binutilsdir=c:\development\fpcbootstrap
fpcbootstrapdir=c:\development\fpcbootstrap
cputarget=i8086
ostarget=msdos
verbose=0
; We only need an FPC here; assume FPC has been updated by regular update
only=FPCBuildOnly
Then generate the cross compiler with
fpcup --inifile=settings.ini --inisection=dos
Now you can run a test compile, compiling a file test.pas with
fpc -Pi8086 -TMSDOS test.pas
(your fpc.cfg will have been modified to use DOS medium memory model, smartlinking etc)