Difference between revisions of "Talk:fpcup"

From Free Pascal wiki
Jump to navigationJump to search
(Created page with "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 [[D...")
 
(dos crosscompiler works)
 
Line 1: Line 1:
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:
 
<syntaxhighlight lang="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
 
</syntaxhighlight>
 
 
Then generate the cross compiler with
 
<syntaxhighlight lang="dos">
 
fpcup --inifile=settings.ini --inisection=dos
 
</syntaxhighlight>
 
 
Now you can run a test compile, compiling a file test.pas with
 
<syntaxhighlight lang="dos">
 
fpc -Pi8086 -TMSDOS test.pas
 
</syntaxhighlight>
 
(your fpc.cfg will have been modified to use DOS medium memory model, smartlinking etc)
 

Latest revision as of 08:39, 23 October 2013