mazen a1e416bb22 * use SysUtils unit instead of Dos Unit vor 21 Jahren
..
alpha 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
arm 8b3e00244f * length parameter for copyvaluearray changed to tlocation vor 21 Jahren
html fa0d3d79e0 no message vor 23 Jahren
i386 60c73cc0e5 * -Or fixes for open array vor 21 Jahren
ia64 8a9758c5e2 * logs truncated vor 21 Jahren
m68k 66df745917 * small regvar for para fixes vor 21 Jahren
msg 5df0c00360 * better PathExists, fix for too long command line, correction of message vor 21 Jahren
new 8a9758c5e2 * logs truncated vor 21 Jahren
powerpc 99c6740d7d * include pi_do_call if we generate a call instead of internalerroring vor 21 Jahren
sparc d6bffaf5c6 * fixed sparc compile vor 21 Jahren
systems ef6c8dc443 * small updates to make playing with sparc/sunos easier vor 21 Jahren
utils 5d088845d3 + added -h option to show help vor 21 Jahren
vis 8a9758c5e2 * logs truncated vor 21 Jahren
x86 c853d10cc2 * optimized spilling writing when the reg operand can be vor 21 Jahren
x86_64 60c73cc0e5 * -Or fixes for open array vor 21 Jahren
Makefile 458e3c3780 * makefiles regenerated vor 21 Jahren
Makefile.fpc 151478584c * fpcfan copy paste error (ifdef x86_64 should be arm) vor 21 Jahren
README 012af1131e * updated to help compiling the compiler vor 22 Jahren
aasmbase.pas 1d846baf9e * fixed relabeling properly now :) vor 21 Jahren
aasmtai.pas f5471aef6e * more spilling rewrites vor 21 Jahren
aggas.pas a8bf3670d5 * Merge is complete for this file, cycles ! vor 21 Jahren
aopt.pas 8a9758c5e2 * logs truncated vor 21 Jahren
aoptbase.pas 8a9758c5e2 * logs truncated vor 21 Jahren
aoptcs.pas 8a9758c5e2 * logs truncated vor 21 Jahren
aoptda.pas 8a9758c5e2 * logs truncated vor 21 Jahren
aoptobj.pas 8a9758c5e2 * logs truncated vor 21 Jahren
assemble.pas 7321a78e1c * Merge is complete for this file, cycles ! vor 21 Jahren
browcol.pas 8a0fb3becf * use SysUtils unit instead of Dos Unit vor 21 Jahren
browlog.pas 8a9758c5e2 * logs truncated vor 21 Jahren
bsdcompile 26081ed999 * Simple script which specifies the right params for a try out BSD build vor 25 Jahren
catch.pas be837c0f23 + Added argument to Stop vor 21 Jahren
cclasses.pas ec720a5800 * insertlistbefore added vor 21 Jahren
cg64f32.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
cg64f64.pas 8a9758c5e2 * logs truncated vor 21 Jahren
cgbase.pas 9e879f3931 * fix clearing of superregset (from Peter) vor 21 Jahren
cgobj.pas 60c73cc0e5 * -Or fixes for open array vor 21 Jahren
cgutils.pas fabb9c33ac * top_symbol killed vor 21 Jahren
charset.pas 8a9758c5e2 * logs truncated vor 21 Jahren
cmsgs.pas 8a9758c5e2 * logs truncated vor 21 Jahren
comphook.pas e795e5c581 * use SysUtils unit instead of Dos Unit vor 21 Jahren
compiler.pas a1e416bb22 * use SysUtils unit instead of Dos Unit vor 21 Jahren
compinnr.inc ff36adb056 + macpas style: exit, cycle, leave vor 21 Jahren
comprsrc.pas f37082e5ca * Merge is complete for this file, cycles ! vor 21 Jahren
cp437.pas effb0aae89 - remove compilation warnings vor 22 Jahren
cp850.pas effb0aae89 - remove compilation warnings vor 22 Jahren
cp8859_1.pas effb0aae89 - remove compilation warnings vor 22 Jahren
crc.pas 8a9758c5e2 * logs truncated vor 21 Jahren
cresstr.pas b3e3030e6f * remove maxlen field from ansistring/widestrings vor 21 Jahren
cstreams.pas 8a9758c5e2 * logs truncated vor 21 Jahren
cutils.pas 573ff47a1e * use SysUtils unit instead of Dos Unit vor 21 Jahren
defcmp.pas e1278ec66f * prefer pchar-string over pchar-pointer vor 21 Jahren
defutil.pas 1eb575fa22 * fixed longbool(<int64>) on sparc vor 21 Jahren
depend e525797c51 * updated copyright to 2000 vor 25 Jahren
dmisc.pas 8a9758c5e2 * logs truncated vor 21 Jahren
dwarf.pas 8a9758c5e2 * logs truncated vor 21 Jahren
export.pas 8a9758c5e2 * logs truncated vor 21 Jahren
finput.pas ff069c5ecc + Patch from Christian Iversen to implement LIBPREFIX/SUFFIX/EXTENSION directives vor 21 Jahren
fmodule.pas b24163cef6 * use realmodulename in unit not used msg vor 21 Jahren
fpcdefs.inc 28e0869e6f - disabled oldregvars because it no longer compiles vor 21 Jahren
fppu.pas e32eac8468 * remove check for shortunitname, it broke units with 8 and 9 chars vor 21 Jahren
gdb.pas 8a9758c5e2 * logs truncated vor 21 Jahren
gendef.pas 8a9758c5e2 * logs truncated vor 21 Jahren
globals.pas 044ec56b56 * default optimization cpu changed to CLassPentium3 vor 21 Jahren
globtype.pas 70fd9e8c81 + Needed types aliases to merge USE_SYSUTILS branch vor 21 Jahren
htypechk.pas 6ffca1688e * fixed visibility for procsyms vor 21 Jahren
impdef.pas 8a9758c5e2 * logs truncated vor 21 Jahren
import.pas 8a9758c5e2 * logs truncated vor 21 Jahren
link.pas cdd920623b * Merge is complete for this file, cycles ! vor 21 Jahren
make_old.cmd 918d797b20 * make.cmd renamed to make_old.cmd vor 24 Jahren
mdppc386.bat 1f4bac4fd0 * delphi fixes vor 24 Jahren
mppc386.bat 07ad807864 * added -FE. to put the PPU's in the compiler dir vor 25 Jahren
mppc68k.bat 0e8616ed1f + temporary variables now in temp_gen.pas unit vor 27 Jahren
mppcsparc 72556ae39f * fix compile problem vor 21 Jahren
msgidx.inc 5df0c00360 * better PathExists, fix for too long command line, correction of message vor 21 Jahren
msgtxt.inc 5df0c00360 * better PathExists, fix for too long command line, correction of message vor 21 Jahren
nadd.pas 33a834821f * paraloc branch merged vor 21 Jahren
nbas.pas 560a790a57 * gen high tree makes copy in temp when there is a calln vor 21 Jahren
ncal.pas 560a790a57 * gen high tree makes copy in temp when there is a calln vor 21 Jahren
ncgadd.pas 15d3388449 * fixed more sparc overflow stuff vor 21 Jahren
ncgbas.pas 8fb3536f6e * simple regvar support, not yet finished vor 21 Jahren
ncgcal.pas 0573c742e4 * passing a var parameter to var parameter is now also allowed vor 21 Jahren
ncgcnv.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
ncgcon.pas 120c165a62 * constant floating point assignments etc. are now overflow checked vor 21 Jahren
ncgflw.pas 8fb3536f6e * simple regvar support, not yet finished vor 21 Jahren
ncginl.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
ncgld.pas 0573c742e4 * passing a var parameter to var parameter is now also allowed vor 21 Jahren
ncgmat.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
ncgmem.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
ncgopt.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
ncgset.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
ncgutil.pas 60c73cc0e5 * -Or fixes for open array vor 21 Jahren
ncnv.pas f1ae6fb6d4 * give error when converting class to interface are not related vor 21 Jahren
ncon.pas 8a9758c5e2 * logs truncated vor 21 Jahren
nflw.pas 67548d9f91 * for loop variable assignment is not allowed anymore vor 21 Jahren
ninl.pas 4978a7635a * another fix for reading of subranges vor 21 Jahren
nld.pas b5d1220bef * fixed crash when current_procinfo was not yet available vor 21 Jahren
nmat.pas 8a9758c5e2 * logs truncated vor 21 Jahren
nmem.pas 8fb3536f6e * simple regvar support, not yet finished vor 21 Jahren
nobj.pas 6ffca1688e * fixed visibility for procsyms vor 21 Jahren
node.pas 8a9758c5e2 * logs truncated vor 21 Jahren
nopt.pas 8a9758c5e2 * logs truncated vor 21 Jahren
nset.pas 8a9758c5e2 * logs truncated vor 21 Jahren
nstate.pas 8a9758c5e2 * logs truncated vor 21 Jahren
nutils.pas 5906d4a967 * fix possible wrong typecast vor 21 Jahren
ogbase.pas 8a9758c5e2 * logs truncated vor 21 Jahren
ogcoff.pas 1654d9ad27 don't use .rodata, it doesn't work yet vor 21 Jahren
ogelf.pas 04cce65ea2 * .rodata section support, disabled by default since it doesn't work vor 21 Jahren
oglx.pas 8a9758c5e2 * logs truncated vor 21 Jahren
ogmap.pas 8a9758c5e2 * logs truncated vor 21 Jahren
options.pas 75363a20b0 * Merge is complete for this file, cycles ! vor 21 Jahren
owar.pas 8a9758c5e2 * logs truncated vor 21 Jahren
owbase.pas 8a9758c5e2 * logs truncated vor 21 Jahren
parabase.pas b0c25b50a0 * symtable allocation rewritten vor 21 Jahren
paramgr.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to vor 21 Jahren
parser.pas 8a9758c5e2 * logs truncated vor 21 Jahren
pass_1.pas 8a9758c5e2 * logs truncated vor 21 Jahren
pass_2.pas 8a9758c5e2 * logs truncated vor 21 Jahren
pbase.pas fe54af8f82 * finally is an "endtoken" as well vor 21 Jahren
pdecl.pas 6096fe0789 * use realname in error msg vor 21 Jahren
pdecobj.pas ade0fde929 allow published for constructors vor 21 Jahren
pdecsub.pas d288070a7a * mark non-regable after calling convention is set vor 21 Jahren
pdecvar.pas 560a790a57 * gen high tree makes copy in temp when there is a calln vor 21 Jahren
pexports.pas 8a9758c5e2 * logs truncated vor 21 Jahren
pexpr.pas 1bb51a2667 * all checking for visibility is now done by is_visible_for_object vor 21 Jahren
pinline.pas 8a9758c5e2 * logs truncated vor 21 Jahren
pmodules.pas ef7ae0eab1 * debuginfo fixes vor 21 Jahren
pp.lpi e27d695e7c * Fix new command line parameters vor 21 Jahren
pp.pas 8a9758c5e2 * logs truncated vor 21 Jahren
ppc.cfg 9465a13e71 + Delphi 6 configuration file vor 23 Jahren
ppc.conf add30a428e * Kylix fixes, mostly case names of units vor 24 Jahren
ppc.dof 67486c96c3 * fixes for Delphi 6 compilation vor 23 Jahren
ppc.dpr 67486c96c3 * fixes for Delphi 6 compilation vor 23 Jahren
ppheap.pas 8a9758c5e2 * logs truncated vor 21 Jahren
ppu.pas 33a834821f * paraloc branch merged vor 21 Jahren
procinfo.pas 8a9758c5e2 * logs truncated vor 21 Jahren
pstatmnt.pas 6180168a5a * register loopvarsym for fields instead of record variable vor 21 Jahren
psub.pas b0c25b50a0 * symtable allocation rewritten vor 21 Jahren
psystem.pas ff36adb056 + macpas style: exit, cycle, leave vor 21 Jahren
ptconst.pas b3e3030e6f * remove maxlen field from ansistring/widestrings vor 21 Jahren
ptype.pas 8a9758c5e2 * logs truncated vor 21 Jahren
raatt.pas 8a9758c5e2 * logs truncated vor 21 Jahren
rabase.pas 8a9758c5e2 * logs truncated vor 21 Jahren
rasm.pas 8a9758c5e2 * logs truncated vor 21 Jahren
rautils.pas 63cf4464d3 * tvarsym.varregable added, split vo_regable from varoptions vor 21 Jahren
regvars.pas 8fb3536f6e * simple regvar support, not yet finished vor 21 Jahren
rgbase.pas 8a9758c5e2 * logs truncated vor 21 Jahren
rgobj.pas 60c73cc0e5 * -Or fixes for open array vor 21 Jahren
scandir.pas 354004d803 * target netwlibc added (libc is preferred for newer netware versions) vor 21 Jahren
scanner.pas 45e4998167 * Exchanged hardcoded "./" to CurDirRelPath vor 21 Jahren
script.pas ef89703097 * minor fix for macos vor 21 Jahren
switches.pas d763f9e142 browser disabled vor 21 Jahren
symbase.pas a939095dbe * revert has_localst patch vor 21 Jahren
symconst.pas 63cf4464d3 * tvarsym.varregable added, split vo_regable from varoptions vor 21 Jahren
symdef.pas 4f7667488b * parameter regvar fixes vor 21 Jahren
symnot.pas 8a9758c5e2 * logs truncated vor 21 Jahren
symsym.pas c25b06a836 * fix misplaced begin..end for self stabs vor 21 Jahren
symtable.pas 1bb51a2667 * all checking for visibility is now done by is_visible_for_object vor 21 Jahren
symtype.pas 6ffca1688e * fixed visibility for procsyms vor 21 Jahren
symutil.pas 8a9758c5e2 * logs truncated vor 21 Jahren
systems.pas 354004d803 * target netwlibc added (libc is preferred for newer netware versions) vor 21 Jahren
tgobj.pas 33a834821f * paraloc branch merged vor 21 Jahren
tokens.pas 98df0978e1 + adding operators "|" and "&" for macpas vor 21 Jahren
tpexcept.pas 8a9758c5e2 * logs truncated vor 21 Jahren
verbose.pas 41f7fa8c37 + Check if outputdir exists, Fix exitcode when displaying help pages vor 21 Jahren
version.pas 8a9758c5e2 * logs truncated vor 21 Jahren
widestr.pas 8a9758c5e2 * logs truncated vor 21 Jahren

README

This directory contains the sources of the Free Pascal Compiler

If you want to compile/modify the compiler, please read first the
programmers manual.

To recompile the compiler, you can use the batch files :
+ mppc386.bat if you want to build a cross compiler from i386 to m68k
+ mppcsparc if you want to build a cross compiler from i386 to SPARC

or
Use the make utility as following

make OS_TARGET="compiler OS target" \
CPU_TARGET="compiler CPU target" \
FPCCPUOPT="Optimization level" \
PP="compiler used to compile FPC" \
COMPILER_OPTIONS="Options passed to compiler" \


If an option is omitted, then target CPU/OS will be same as current CPU/OS

Possibles targets are : linux go32v2 win32 os2 freebsd beos netbsd amiga
atari sunos qnx netware openbsd wdosx palmos macos macosx emx

Possible compiler switches (* marks a currently required switch):
-----------------------------------------------------------------
GDB* support of the GNU Debugger
I386 generate a compiler for the Intel i386+
x86_64 generate a compiler for the AMD x86-64 architecture
M68K generate a compiler for the M68000
SPARC generate a compiler for SPARC
POWERPC generate a compiler for the PowerPC
VIS generate a compile for the VIS
DEBUG version with debug code is generated
EXTDEBUG some extra debug code is executed
SUPPORT_MMX only i386: releases the compiler switch
MMX which allows the compiler to generate
MMX instructions
EXTERN_MSG Don't compile the msgfiles in the compiler, always
use external messagefiles, default for TP
NOAG386INT no Intel Assembler output
NOAG386NSM no NASM output
NOAG386BIN leaves out the binary writer, default for TP
NORA386DIR No direct i386 assembler reader
TEST_GENERIC Test Generic version of code generator
(uses generic RTL calls)
-----------------------------------------------------------------
cpuflags The target processor has status flags (on by default)
cpufpemu The target compiler will also support emitting software
floating point operations
cpu64bit The target is a 64-bit processor
-----------------------------------------------------------------

Required switches for a i386 compiler be compiled by Free Pascal Compiler:
GDB;I386

to build a compiler to SPARC target using a Win32/i386 you just use :
make CPU_TARGET=SPARC