florian ce3f177339 * dyn. linker path fixed for x86_64 21 jaren geleden
..
alpha c95a859f0a * generic tlocation 21 jaren geleden
arm ad4345c217 * fixed arm compilation 21 jaren geleden
html fa0d3d79e0 no message 23 jaren geleden
i386 c279c13d17 * the optimization fstp f;fld f to fst f disabled; leads to rounding problems 21 jaren geleden
ia64 8a9758c5e2 * logs truncated 21 jaren geleden
m68k 54ceea9e60 * some m68k stuff updated 21 jaren geleden
msg 00c14e1083 * external is again allowed in implementation 21 jaren geleden
new c95a859f0a * generic tlocation 21 jaren geleden
powerpc fad0e529a4 * syscall with sysv abi for morphos 21 jaren geleden
sparc b44f17099c * fixed some alignment trouble 21 jaren geleden
systems ce3f177339 * dyn. linker path fixed for x86_64 21 jaren geleden
utils 390876bdb4 * Makefiles regenerated 21 jaren geleden
vis c95a859f0a * generic tlocation 21 jaren geleden
x86 0037f4a199 * fixed operand size calculation for sse operands 21 jaren geleden
x86_64 ed9f8f54e7 * generic optimizer 21 jaren geleden
COPYING d4b8a224a1 + Added license to this library 21 jaren geleden
Makefile 749afb3dec * small optimization with options passed to cycle 21 jaren geleden
Makefile.fpc 749afb3dec * small optimization with options passed to cycle 21 jaren geleden
README 012af1131e * updated to help compiling the compiler 22 jaren geleden
aasmbase.pas 6fa0391558 * fix for 1.9.4 that IE'd when rebuilding fpc 21 jaren geleden
aasmtai.pas 1cf3aef0f0 * regalloc bind to instructions need to get real ait_instruction 21 jaren geleden
aggas.pas fcde2cab80 * support rodata like data when writing ordinal cosnts 21 jaren geleden
aopt.pas c95a859f0a * generic tlocation 21 jaren geleden
aoptbase.pas 054f6bff3a * fixed missing cgutils usage 21 jaren geleden
aoptcs.pas 8a9758c5e2 * logs truncated 21 jaren geleden
aoptda.pas e04b172854 * fixed generic optimizer 21 jaren geleden
aoptobj.pas 054f6bff3a * fixed missing cgutils usage 21 jaren geleden
assemble.pas 6c9c4c686c * small m68k updates to bring it up2date 21 jaren geleden
browcol.pas e740a66636 * tparaitem removed, use tparavarsym instead 21 jaren geleden
browlog.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
bsdcompile 26081ed999 * Simple script which specifies the right params for a try out BSD build 25 jaren geleden
catch.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
cclasses.pas a263b1d40e * GetHeapStatus added, removed MaxAvail,MemAvail,HeapSize 21 jaren geleden
cg64f32.pas 466c376d13 * LOC_CREGISTER fix 21 jaren geleden
cgbase.pas 0037f4a199 * fixed operand size calculation for sse operands 21 jaren geleden
cgobj.pas bd04491f50 * patch from Peter to fix inlining of case statements 21 jaren geleden
cgutils.pas 18f7aa97dd * changed funcret location back to tlocation 21 jaren geleden
charset.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
cmsgs.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
comphook.pas a263b1d40e * GetHeapStatus added, removed MaxAvail,MemAvail,HeapSize 21 jaren geleden
compiler.pas a263b1d40e * GetHeapStatus added, removed MaxAvail,MemAvail,HeapSize 21 jaren geleden
compinnr.inc 4d8460ec2f * float routines all use internproc and compilerproc helpers 21 jaren geleden
comprsrc.pas e90d8a42e3 * USE_SYSUTILS merged successfully : cycles with and without defines 21 jaren geleden
cp437.pas effb0aae89 - remove compilation warnings 23 jaren geleden
cp850.pas effb0aae89 - remove compilation warnings 23 jaren geleden
cp8859_1.pas effb0aae89 - remove compilation warnings 23 jaren geleden
crc.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cresstr.pas 636f2ea7c9 * resource ansistrings now use aint for len and ref. count as well 21 jaren geleden
cstreams.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cutils.pas e740a66636 * tparaitem removed, use tparavarsym instead 21 jaren geleden
defcmp.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
defutil.pas 9b00c7832e * support > 32bit accesses for x86_64 21 jaren geleden
dwarf.pas c95a859f0a * generic tlocation 21 jaren geleden
export.pas 8a9758c5e2 * logs truncated 21 jaren geleden
finput.pas e90d8a42e3 * USE_SYSUTILS merged successfully : cycles with and without defines 21 jaren geleden
fmodule.pas 088892de9b use filepos of main when generating the module stabs 21 jaren geleden
fpcdefs.inc 60e0494a74 * fixed morphos syscall 21 jaren geleden
fppu.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
gdb.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
gendef.pas 8a9758c5e2 * logs truncated 21 jaren geleden
globals.pas 9dec5c3179 * introduction "cleanpath" (=fexpand), fixfilename(paramstr(0)) + search $PREFIX/etc/fpc.cfg 21 jaren geleden
globtype.pas 29db12ecfa * disable inlining across units when the inline procedure references 21 jaren geleden
htypechk.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
impdef.pas 4e2e51c4b1 * use SysUtils unit instead of Dos Unit 21 jaren geleden
import.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
link.pas 589dd8c10e First check outputunitdir/outputexedir for .o file 21 jaren geleden
make_old.cmd 918d797b20 * make.cmd renamed to make_old.cmd 24 jaren geleden
mdppc386.bat 1f4bac4fd0 * delphi fixes 24 jaren geleden
mppc386.bat 07ad807864 * added -FE. to put the PPU's in the compiler dir 25 jaren geleden
mppc68k.bat 0e8616ed1f + temporary variables now in temp_gen.pas unit 27 jaren geleden
mppcsparc 72556ae39f * fix compile problem 21 jaren geleden
msgidx.inc 00c14e1083 * external is again allowed in implementation 21 jaren geleden
msgtxt.inc 00c14e1083 * external is again allowed in implementation 21 jaren geleden
nadd.pas d45dea5db8 * fix methodpointer compare, compare only the proc field 21 jaren geleden
nbas.pas 5ee4b9ad24 * use tlocation for tempnodes 21 jaren geleden
ncal.pas 29db12ecfa * disable inlining across units when the inline procedure references 21 jaren geleden
ncgadd.pas 73c30d6579 * fixed arm compilation with cgutils 21 jaren geleden
ncgbas.pas 1c458abb0b * compile fixes for x86_64 21 jaren geleden
ncgcal.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
ncgcnv.pas 9e24c28774 - removed superfluous location_force_reg() in second_nothing 21 jaren geleden
ncgcon.pas c95a859f0a * generic tlocation 21 jaren geleden
ncgflw.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
ncginl.pas 4d8460ec2f * float routines all use internproc and compilerproc helpers 21 jaren geleden
ncgld.pas b44f17099c * fixed some alignment trouble 21 jaren geleden
ncgmat.pas c95a859f0a * generic tlocation 21 jaren geleden
ncgmem.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
ncgopt.pas c95a859f0a * generic tlocation 21 jaren geleden
ncgset.pas 62d4f7dd52 * fixed regvar problem due to emit_bit_test() changing a register that 21 jaren geleden
ncgutil.pas 00c14e1083 * external is again allowed in implementation 21 jaren geleden
ncnv.pas 78c2af7b3c * set vo_explicit_paraloc flag 21 jaren geleden
ncon.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nflw.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
ninl.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
nld.pas 44bf61f445 * Convert array of widechar to pwidechar instead of pchar 21 jaren geleden
nmat.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nmem.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
nobj.pas 1943e6a5ab * write nil entry after last entry to vmt table so the size of the vmt can be determined 21 jaren geleden
node.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
nopt.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nset.pas bd04491f50 * patch from Peter to fix inlining of case statements 21 jaren geleden
nstate.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nutils.pas 00c14e1083 * external is again allowed in implementation 21 jaren geleden
ogbase.pas 169f43ca6a * Dos and cpubase units in uses clause are not needed 21 jaren geleden
ogcoff.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
ogelf.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
oglx.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
ogmap.pas 8a9758c5e2 * logs truncated 21 jaren geleden
options.pas e79fb753bc * slash typo 21 jaren geleden
owar.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
owbase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
parabase.pas 8cf8c54609 * fixed varargs 21 jaren geleden
paramgr.pas 18f7aa97dd * changed funcret location back to tlocation 21 jaren geleden
parser.pas e7459f5466 * heap and heapsize removed 21 jaren geleden
pass_1.pas 8a9758c5e2 * logs truncated 21 jaren geleden
pass_2.pas 8a9758c5e2 * logs truncated 21 jaren geleden
pbase.pas fe54af8f82 * finally is an "endtoken" as well 21 jaren geleden
pdecl.pas 87d2861f89 * fixes for win32 mangledname 21 jaren geleden
pdecobj.pas 87d2861f89 * fixes for win32 mangledname 21 jaren geleden
pdecsub.pas fad0e529a4 * syscall with sysv abi for morphos 21 jaren geleden
pdecvar.pas d7c52f4062 * external vars are not regable 21 jaren geleden
pexports.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
pexpr.pas 9c0be16488 implicit load of variants unit 21 jaren geleden
pinline.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
pmodules.pas 9c0be16488 implicit load of variants unit 21 jaren geleden
pp.lpi 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
pp.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ppc.cfg 9465a13e71 + Delphi 6 configuration file 23 jaren geleden
ppc.conf add30a428e * Kylix fixes, mostly case names of units 24 jaren geleden
ppc.dof 67486c96c3 * fixes for Delphi 6 compilation 23 jaren geleden
ppc.dpr 67486c96c3 * fixes for Delphi 6 compilation 23 jaren geleden
ppheap.pas f0723c54f0 * fixed compile error 21 jaren geleden
ppu.pas 9c0be16488 implicit load of variants unit 21 jaren geleden
procinfo.pas c95a859f0a * generic tlocation 21 jaren geleden
pstatmnt.pas 78c2af7b3c * set vo_explicit_paraloc flag 21 jaren geleden
psub.pas 29db12ecfa * disable inlining across units when the inline procedure references 21 jaren geleden
psystem.pas 78c2af7b3c * set vo_explicit_paraloc flag 21 jaren geleden
ptconst.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
ptype.pas 87d2861f89 * fixes for win32 mangledname 21 jaren geleden
raatt.pas 06cfe01791 * os2 fixes for import 21 jaren geleden
rabase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rasm.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rautils.pas 0037f4a199 * fixed operand size calculation for sse operands 21 jaren geleden
regvars.pas 6792b5ab16 * uppdated in accordance to varregable for OLDREGVARS 21 jaren geleden
rgbase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rgobj.pas db81b4333a * fatal error when procedure is too complex 21 jaren geleden
scandir.pas e009b39d8b * check extension of library if it needs to be linked static 21 jaren geleden
scanner.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
script.pas ef89703097 * minor fix for macos 21 jaren geleden
switches.pas d763f9e142 browser disabled 21 jaren geleden
symbase.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
symconst.pas 2b6456fe16 * procvar handling for tp procvar mode fixed 21 jaren geleden
symdef.pas a266052fd9 * modified algorithm for shortening manglednames to fix compilation 21 jaren geleden
symnot.pas 8a9758c5e2 * logs truncated 21 jaren geleden
symsym.pas 78c2af7b3c * set vo_explicit_paraloc flag 21 jaren geleden
symtable.pas 5576ae73a6 * fix visibility of protected/private 21 jaren geleden
symtype.pas c3f6b3125e * 64bit typecast 21 jaren geleden
symutil.pas 6458bd0ce1 * tvarsym splitted 21 jaren geleden
systems.pas 4d25901e99 * check if the selected assembler supports current target improved 21 jaren geleden
tgobj.pas 18f7aa97dd * changed funcret location back to tlocation 21 jaren geleden
tokens.pas 705868e816 * remove saveregister calling convention 21 jaren geleden
tpexcept.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden
verbose.pas e740a66636 * tparaitem removed, use tparavarsym instead 21 jaren geleden
version.pas 8a9758c5e2 * logs truncated 21 jaren geleden
widestr.pas 581b52422c - remove $IFDEF DELPHI and related code 21 jaren geleden

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