daniel 3a3f65a364 * Fix string type stab generation. String constant still unsupported. 21 anni fa
..
alpha a835405a27 * fixed a compilation bug accmulator-->accumulator, in definition of return_result_reg 23 anni fa
arm 35110d8ef5 * fixed several arm issues 21 anni fa
html fa0d3d79e0 no message 23 anni fa
i386 64d60391bd * fixed crashes when procdef.funcretsym is not valid 21 anni fa
ia64 a835405a27 * fixed a compilation bug accmulator-->accumulator, in definition of return_result_reg 23 anni fa
m68k eec59028e3 * m68k register tables 22 anni fa
msg 7065a0d804 * fixed copyright year 21 anni fa
new dcd9e0107c * old logs removed and tabs fixed 23 anni fa
powerpc c006ab8326 - removed double construction of fpu register allocator 21 anni fa
sparc bf36516f33 * Supported assembler modes are GAS and STANDARD 21 anni fa
systems 35110d8ef5 * fixed several arm issues 21 anni fa
utils 01adf563a9 * improved error message 21 anni fa
vis 86bcea6ef5 * Code generator converted to new register notation 22 anni fa
x86 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
x86_64 c37035a450 * common addnode code for x86-64 and i386 21 anni fa
Makefile 55850b063a * regenerating the makefiles with some netbsd fixes + version upgrades 21 anni fa
Makefile.fpc b487ca1339 * fixed a few makefiles version numbers 21 anni fa
README 012af1131e * updated to help compiling the compiler 22 anni fa
aasmbase.pas 8ff5792776 * remove some unit dependencies 22 anni fa
aasmtai.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
aggas.pas 37454274bc * fixed several arm floating point issues 21 anni fa
aopt.pas 4285e99853 * internal linker 23 anni fa
aoptbase.pas 07783d2a0d * powerpc target fixed, very simple units can be compiled 23 anni fa
aoptcs.pas c4ddcc78a8 * generic constructor working for i386 22 anni fa
aoptda.pas 06ebac4e27 * readded missing revisions 23 anni fa
aoptobj.pas a496dbe1ff * pass proccalloption to ret_in_xxx and push_xxx functions 23 anni fa
assemble.pas 80abe98cf0 * havelinuxrtl10 fixes 22 anni fa
browcol.pas 70fe77ca7c * procinfo unit contains tprocinfo 22 anni fa
browlog.pas dcd9e0107c * old logs removed and tabs fixed 23 anni fa
bsdcompile 26081ed999 * Simple script which specifies the right params for a try out BSD build 25 anni fa
catch.pas 80abe98cf0 * havelinuxrtl10 fixes 22 anni fa
cclasses.pas 7a6b6f4bd4 * Some minor stuff 21 anni fa
cg64f32.pas 3ab069324a * op_const_reg_reg with OP_SAR fixed 21 anni fa
cg64f64.pas f936718fa1 * x86-64 compilation fixed 21 anni fa
cgbase.pas 47f08937e4 * use localalign info for alignment for locals and temps 21 anni fa
cgobj.pas 74f5f05b6d * g_finalize needs to reset to nil after decr_ref 21 anni fa
charset.pas 9ed2ce8c12 * removed some notes/hints 22 anni fa
checkmem.pas 9ed2ce8c12 * removed some notes/hints 22 anni fa
cmsgs.pas 77d8f335aa * vmtpointer_offset must be adjusted in after_pass1 as well 22 anni fa
comphook.pas fd278ee582 * print lineinfo for internalerror 22 anni fa
compiler.pas 85bed883ce * another bunch of x86-64 fixes mainly calling convention and 21 anni fa
compinnr.inc 90a0c832e4 * Initialize() added 22 anni fa
comprsrc.pas 0210c33f15 * fixed resource compiler search if no utilty directory was given 22 anni fa
cp437.pas effb0aae89 - remove compilation warnings 23 anni fa
cp850.pas effb0aae89 - remove compilation warnings 23 anni fa
cp8859_1.pas effb0aae89 - remove compilation warnings 23 anni fa
crc.pas 06ebac4e27 * readded missing revisions 23 anni fa
cresstr.pas a3cd612259 * fixed error message, if a resource file can't be written 22 anni fa
cstreams.pas 68ce5a00e5 * cg64 patch 23 anni fa
cutils.pas 3dfde8c397 * Bugfix on constant strings stab generation. Never worked and still 21 anni fa
defcmp.pas c3b9e56e90 * give penalty in float-float conversion when precision is lost 21 anni fa
defutil.pas 06442fa677 + $fputype directive support 22 anni fa
depend e525797c51 * updated copyright to 2000 26 anni fa
dmisc.pas 67486c96c3 * fixes for Delphi 6 compilation 23 anni fa
export.pas eb2ca8d10f * rewrote the system handling 23 anni fa
finput.pas 3677577d9f * check with fileexists() before opening a file 22 anni fa
fmodule.pas fa52c0e3a0 * don't allow duplicate uses 22 anni fa
fpcdefs.inc 378f8aab70 * USEOPT to override NOOPT for 1.0.x 22 anni fa
fppu.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
gdb.pas fcabdbbf35 * fixed unitsym-globalsymtable relation so the uses of a unit 22 anni fa
gendef.pas 8e7124f9f8 + emx target added 22 anni fa
globals.pas 85bed883ce * another bunch of x86-64 fixes mainly calling convention and 21 anni fa
globtype.pas 12aade4e16 * register calling is now default for i386 22 anni fa
htypechk.pas 7bf41f8dff * fix set_varstate in for loops 22 anni fa
impdef.pas 487650ab51 * -XP<prefix> support 22 anni fa
import.pas 60978ba89c * aktprocdef renamed to current_procdef 22 anni fa
link.pas f7418d3286 * fixed external smartlinking 22 anni fa
make_old.cmd 918d797b20 * make.cmd renamed to make_old.cmd 24 anni fa
mdppc386.bat 1f4bac4fd0 * delphi fixes 24 anni fa
mppc386.bat 07ad807864 * added -FE. to put the PPU's in the compiler dir 25 anni fa
mppc68k.bat 0e8616ed1f + temporary variables now in temp_gen.pas unit 27 anni fa
mppcsparc 6294931f73 + add more dirs in include path 22 anni fa
msgidx.inc d42f4af064 * give warning that DWORD is used as size in delphi mode when no 21 anni fa
msgtxt.inc 6e1d153194 * another fix to flag handling 21 anni fa
nadd.pas c37035a450 * common addnode code for x86-64 and i386 21 anni fa
nbas.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
ncal.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
ncgadd.pas 42c6e9323b * sparc updates, mostly float related 21 anni fa
ncgbas.pas bbf7300a0c * Florian's culmutative nr. 1; contains: 22 anni fa
ncgcal.pas a1d904c264 * set aktlocaldata for inlined procedures correctly 21 anni fa
ncgcnv.pas 3d8e1ab1fb + fpu<->mm register conversion 22 anni fa
ncgcon.pas 37454274bc * fixed several arm floating point issues 21 anni fa
ncgflw.pas 47f08937e4 * use localalign info for alignment for locals and temps 21 anni fa
ncginl.pas a75ef67bfd * properly fixed assigned() mess (by handling it separately in ncginl) 22 anni fa
ncgld.pas 06442fa677 + $fputype directive support 22 anni fa
ncgmat.pas d7786f6246 * fixed generic shl/shr operations 21 anni fa
ncgmem.pas d28412f40b * don't generate IMUL reg,1 21 anni fa
ncgopt.pas fb81b7ebbb * old trgobj moved to x86/rgcpu and renamed to trgx86fpu 22 anni fa
ncgset.pas da6811ed58 * fixed and optimized in-node with constant smallset 22 anni fa
ncgutil.pas ac1332a388 * fixed stackchecking for register calling 21 anni fa
ncnv.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
ncon.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
nflw.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
ninl.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
nld.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
nmat.pas d7786f6246 * fixed generic shl/shr operations 21 anni fa
nmem.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
nobj.pas 75e2de9f2c + reintroduce implemented 21 anni fa
node.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
nopt.pas 2258e941af + inlined procedures inherit procinfo flags 22 anni fa
nset.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
nstate.pas dcd9e0107c * old logs removed and tabs fixed 23 anni fa
nutils.pas f663d2488f * cross unit inlining fixed 22 anni fa
ogbase.pas 9ed2ce8c12 * removed some notes/hints 22 anni fa
ogcoff.pas 29a382388e * fix range check error after previous commit 22 anni fa
ogelf.pas 9ed2ce8c12 * removed some notes/hints 22 anni fa
oglx.pas dcd9e0107c * old logs removed and tabs fixed 23 anni fa
ogmap.pas 9ed2ce8c12 * removed some notes/hints 22 anni fa
options.pas 37454274bc * fixed several arm floating point issues 21 anni fa
owar.pas 06ebac4e27 * readded missing revisions 23 anni fa
owbase.pas 4285e99853 * internal linker 23 anni fa
paramgr.pas d38abc3a3f + setting of bit 6 of cr for c var args on ppc implemented 22 anni fa
parser.pas 526cffbaad * set ms_compiled after the program/unit is parsed 22 anni fa
pass_1.pas 70fe77ca7c * procinfo unit contains tprocinfo 22 anni fa
pass_2.pas f663d2488f * cross unit inlining fixed 22 anni fa
pbase.pas 607b41f22e * except is also an end of block token 21 anni fa
pdecl.pas 1367e342db * reg allocations for imaginary register are now inserted just 22 anni fa
pdecobj.pas 5090185909 * global property support for fpc modes 22 anni fa
pdecsub.pas 75e2de9f2c + reintroduce implemented 21 anni fa
pdecvar.pas 5090185909 * global property support for fpc modes 22 anni fa
pexports.pas 67486c96c3 * fixes for Delphi 6 compilation 23 anni fa
pexpr.pas b46b7ff792 * integrated hack from 1.0.x so we can parse low(int64) as int64 instead 22 anni fa
pinline.pas 965835354c * fixed allocation of dimension buffer for setlength(dynarr) 21 anni fa
pmodules.pas 7f911c2f4a * Never generate a "main" symbol for PASCALMAIN for Darwin and classic 21 anni fa
pp.pas 9bdd9c4012 * when compiled with -dnocatch, known rtes aren't translated anymore 21 anni fa
ppc.cfg 9465a13e71 + Delphi 6 configuration file 23 anni fa
ppc.conf add30a428e * Kylix fixes, mostly case names of units 24 anni fa
ppc.dof 67486c96c3 * fixes for Delphi 6 compilation 23 anni fa
ppc.dpr 67486c96c3 * fixes for Delphi 6 compilation 23 anni fa
ppheap.pas 3390a23c26 * fix compilation failure 23 anni fa
ppu.pas f663d2488f * cross unit inlining fixed 22 anni fa
procinfo.pas 1c7e6fc380 * sparc updates 22 anni fa
pstatmnt.pas 607b41f22e * except is also an end of block token 21 anni fa
psub.pas af3d31eceb * fixed handling of max. distance of pc relative symbols 21 anni fa
psystem.pas c37035a450 * common addnode code for x86-64 and i386 21 anni fa
ptconst.pas 980efd582d + support for currency typed constants if currency=int64. Warning: does 22 anni fa
ptype.pas a28d911c98 * IncompatibleTypes() added that will include unit names when 22 anni fa
raatt.pas e380119e8c * sparc assembler reader updates 22 anni fa
rabase.pas 9b9d30b0e9 * fixed wrong initialization 22 anni fa
rasm.pas 1af574ceca * assembler readers OOPed 22 anni fa
rautils.pas 49d1c79f5e * fixed compilation for non-x86 22 anni fa
regvars.pas d0de3b3ea8 * 64k registers supported 22 anni fa
rgbase.pas 3b743d766b * fixed ppc assembler reader 22 anni fa
rgobj.pas 8ef2f96215 * made DoSpill* overrideable 21 anni fa
scandir.pas 06442fa677 + $fputype directive support 22 anni fa
scanner.pas 2ebd9f20b5 * do nothing for macro's in tempcloseinput,tempopeninput 22 anni fa
script.pas 80abe98cf0 * havelinuxrtl10 fixes 22 anni fa
switches.pas bd07b65cfd * don't turn off debuginfo when line info is requested 22 anni fa
symbase.pas 7a6b6f4bd4 * Some minor stuff 21 anni fa
symconst.pas 75e2de9f2c + reintroduce implemented 21 anni fa
symdef.pas 3a3f65a364 * Fix string type stab generation. String constant still unsupported. 21 anni fa
symnot.pas fcabdbbf35 * fixed unitsym-globalsymtable relation so the uses of a unit 22 anni fa
symsym.pas 3dfde8c397 * Bugfix on constant strings stab generation. Never worked and still 21 anni fa
symtable.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
symtype.pas 97e87aaebc * reginfo now also only allocated during register allocation 21 anni fa
symutil.pas 62394e45d7 * moved count_locals from pstatmnt to symutils 22 anni fa
systems.pas 308ab35e63 * Copy and pasted some structures from Net- to OpenBSD (3.4+ ELF!) 21 anni fa
tgobj.pas 47f08937e4 * use localalign info for alignment for locals and temps 21 anni fa
tokens.pas bbf7300a0c * Florian's culmutative nr. 1; contains: 22 anni fa
tpexcept.pas c0c33961bf * use oldfpccall 22 anni fa
verbose.pas f187323816 * -P to -ap 22 anni fa
version.pas fc60443584 * version changed to 1.9.3 21 anni fa
widestr.pas 67486c96c3 * fixes for Delphi 6 compilation 23 anni fa

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