peter 9a64d34d34 * add checks for filedef type to prevent crashes před 21 roky
..
alpha c95a859f0a * generic tlocation před 21 roky
arm 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
html fa0d3d79e0 no message před 23 roky
i386 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
ia64 8a9758c5e2 * logs truncated před 21 roky
m68k 6c9c4c686c * small m68k updates to bring it up2date před 21 roky
msg 14d25d278b mangledname setting moved to place after the complete proc declaration is read před 21 roky
new c95a859f0a * generic tlocation před 21 roky
powerpc 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
sparc a29eab36c7 * fixed funcretloc for sparc před 21 roky
systems 1f6d2f6ece * fixed setting of mangledname when importing před 21 roky
utils 7fa7a1f3da * fix for " Split po_public into po_public and po_global" před 21 roky
vis c95a859f0a * generic tlocation před 21 roky
x86 4d8460ec2f * float routines all use internproc and compilerproc helpers před 21 roky
x86_64 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
Makefile 87d2861f89 * fixes for win32 mangledname před 21 roky
Makefile.fpc 87d2861f89 * fixes for win32 mangledname před 21 roky
README 012af1131e * updated to help compiling the compiler před 22 roky
aasmbase.pas 9b00c7832e * support > 32bit accesses for x86_64 před 21 roky
aasmtai.pas 1cf3aef0f0 * regalloc bind to instructions need to get real ait_instruction před 21 roky
aggas.pas fcde2cab80 * support rodata like data when writing ordinal cosnts před 21 roky
aopt.pas c95a859f0a * generic tlocation před 21 roky
aoptbase.pas 054f6bff3a * fixed missing cgutils usage před 21 roky
aoptcs.pas 8a9758c5e2 * logs truncated před 21 roky
aoptda.pas e04b172854 * fixed generic optimizer před 21 roky
aoptobj.pas 054f6bff3a * fixed missing cgutils usage před 21 roky
assemble.pas 6c9c4c686c * small m68k updates to bring it up2date před 21 roky
browcol.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
browlog.pas 6458bd0ce1 * tvarsym splitted před 21 roky
bsdcompile 26081ed999 * Simple script which specifies the right params for a try out BSD build před 25 roky
catch.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
cclasses.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
cg64f32.pas c95a859f0a * generic tlocation před 21 roky
cgbase.pas 6c9c4c686c * small m68k updates to bring it up2date před 21 roky
cgobj.pas 87b589f4f5 * better code generation for copying of open arrays před 21 roky
cgutils.pas 18f7aa97dd * changed funcret location back to tlocation před 21 roky
charset.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
cmsgs.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
comphook.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
compiler.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
compinnr.inc 4d8460ec2f * float routines all use internproc and compilerproc helpers před 21 roky
comprsrc.pas e90d8a42e3 * USE_SYSUTILS merged successfully : cycles with and without defines před 21 roky
cp437.pas effb0aae89 - remove compilation warnings před 23 roky
cp850.pas effb0aae89 - remove compilation warnings před 23 roky
cp8859_1.pas effb0aae89 - remove compilation warnings před 23 roky
crc.pas 8a9758c5e2 * logs truncated před 21 roky
cresstr.pas 636f2ea7c9 * resource ansistrings now use aint for len and ref. count as well před 21 roky
cstreams.pas 8a9758c5e2 * logs truncated před 21 roky
cutils.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
defcmp.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
defutil.pas 9b00c7832e * support > 32bit accesses for x86_64 před 21 roky
depend e525797c51 * updated copyright to 2000 před 25 roky
dwarf.pas c95a859f0a * generic tlocation před 21 roky
export.pas 8a9758c5e2 * logs truncated před 21 roky
finput.pas e90d8a42e3 * USE_SYSUTILS merged successfully : cycles with and without defines před 21 roky
fmodule.pas 088892de9b use filepos of main when generating the module stabs před 21 roky
fpcdefs.inc 60e0494a74 * fixed morphos syscall před 21 roky
fppu.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
gdb.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
gendef.pas 8a9758c5e2 * logs truncated před 21 roky
globals.pas caa87a23ec * fixed arm compilation před 21 roky
globtype.pas c95a859f0a * generic tlocation před 21 roky
htypechk.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
impdef.pas 4e2e51c4b1 * use SysUtils unit instead of Dos Unit před 21 roky
import.pas 6458bd0ce1 * tvarsym splitted před 21 roky
link.pas 589dd8c10e First check outputunitdir/outputexedir for .o file před 21 roky
make_old.cmd 918d797b20 * make.cmd renamed to make_old.cmd před 24 roky
mdppc386.bat 1f4bac4fd0 * delphi fixes před 24 roky
mppc386.bat 07ad807864 * added -FE. to put the PPU's in the compiler dir před 25 roky
mppc68k.bat 0e8616ed1f + temporary variables now in temp_gen.pas unit před 27 roky
mppcsparc 72556ae39f * fix compile problem před 21 roky
msgidx.inc 14d25d278b mangledname setting moved to place after the complete proc declaration is read před 21 roky
msgtxt.inc 14d25d278b mangledname setting moved to place after the complete proc declaration is read před 21 roky
nadd.pas 2e161c5e9e * nf_internal flag for internal inserted typeconvs. This will před 21 roky
nbas.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
ncal.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
ncgadd.pas 73c30d6579 * fixed arm compilation with cgutils před 21 roky
ncgbas.pas 0c7e53bb81 * fixed compile of powerpc,sparc,arm před 21 roky
ncgcal.pas a29eab36c7 * fixed funcretloc for sparc před 21 roky
ncgcnv.pas 73c30d6579 * fixed arm compilation with cgutils před 21 roky
ncgcon.pas c95a859f0a * generic tlocation před 21 roky
ncgflw.pas 6458bd0ce1 * tvarsym splitted před 21 roky
ncginl.pas 4d8460ec2f * float routines all use internproc and compilerproc helpers před 21 roky
ncgld.pas 7c0b6e129e * fixed wrong typecasts před 21 roky
ncgmat.pas c95a859f0a * generic tlocation před 21 roky
ncgmem.pas 6458bd0ce1 * tvarsym splitted před 21 roky
ncgopt.pas c95a859f0a * generic tlocation před 21 roky
ncgset.pas c95a859f0a * generic tlocation před 21 roky
ncgutil.pas a29eab36c7 * fixed funcretloc for sparc před 21 roky
ncnv.pas 4d8460ec2f * float routines all use internproc and compilerproc helpers před 21 roky
ncon.pas 8a9758c5e2 * logs truncated před 21 roky
nflw.pas 6458bd0ce1 * tvarsym splitted před 21 roky
ninl.pas 9a64d34d34 * add checks for filedef type to prevent crashes před 21 roky
nld.pas 6458bd0ce1 * tvarsym splitted před 21 roky
nmat.pas 8a9758c5e2 * logs truncated před 21 roky
nmem.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
nobj.pas 1943e6a5ab * write nil entry after last entry to vmt table so the size of the vmt can be determined před 21 roky
node.pas 2e161c5e9e * nf_internal flag for internal inserted typeconvs. This will před 21 roky
nopt.pas 8a9758c5e2 * logs truncated před 21 roky
nset.pas 8a9758c5e2 * logs truncated před 21 roky
nstate.pas 8a9758c5e2 * logs truncated před 21 roky
nutils.pas 6458bd0ce1 * tvarsym splitted před 21 roky
ogbase.pas 169f43ca6a * Dos and cpubase units in uses clause are not needed před 21 roky
ogcoff.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
ogelf.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
oglx.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
ogmap.pas 8a9758c5e2 * logs truncated před 21 roky
options.pas 14d25d278b mangledname setting moved to place after the complete proc declaration is read před 21 roky
owar.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
owbase.pas 8a9758c5e2 * logs truncated před 21 roky
parabase.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
paramgr.pas 18f7aa97dd * changed funcret location back to tlocation před 21 roky
parser.pas e7459f5466 * heap and heapsize removed před 21 roky
pass_1.pas 8a9758c5e2 * logs truncated před 21 roky
pass_2.pas 8a9758c5e2 * logs truncated před 21 roky
pbase.pas fe54af8f82 * finally is an "endtoken" as well před 21 roky
pdecl.pas 87d2861f89 * fixes for win32 mangledname před 21 roky
pdecobj.pas 87d2861f89 * fixes for win32 mangledname před 21 roky
pdecsub.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
pdecvar.pas 87d2861f89 * fixes for win32 mangledname před 21 roky
pexports.pas 6458bd0ce1 * tvarsym splitted před 21 roky
pexpr.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
pinline.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
pmodules.pas 180966c0aa * Split po_public into po_public and po_global (Peter) před 21 roky
pp.lpi 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
pp.pas 8a9758c5e2 * logs truncated před 21 roky
ppc.cfg 9465a13e71 + Delphi 6 configuration file před 23 roky
ppc.conf add30a428e * Kylix fixes, mostly case names of units před 24 roky
ppc.dof 67486c96c3 * fixes for Delphi 6 compilation před 23 roky
ppc.dpr 67486c96c3 * fixes for Delphi 6 compilation před 23 roky
ppheap.pas f0723c54f0 * fixed compile error před 21 roky
ppu.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
procinfo.pas c95a859f0a * generic tlocation před 21 roky
pstatmnt.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
psub.pas 18f7aa97dd * changed funcret location back to tlocation před 21 roky
psystem.pas 6458bd0ce1 * tvarsym splitted před 21 roky
ptconst.pas 7c0b6e129e * fixed wrong typecasts před 21 roky
ptype.pas 87d2861f89 * fixes for win32 mangledname před 21 roky
raatt.pas 4d8460ec2f * float routines all use internproc and compilerproc helpers před 21 roky
rabase.pas 8a9758c5e2 * logs truncated před 21 roky
rasm.pas 8a9758c5e2 * logs truncated před 21 roky
rautils.pas 4d8460ec2f * float routines all use internproc and compilerproc helpers před 21 roky
regvars.pas 6792b5ab16 * uppdated in accordance to varregable for OLDREGVARS před 21 roky
rgbase.pas 8a9758c5e2 * logs truncated před 21 roky
rgobj.pas db81b4333a * fatal error when procedure is too complex před 21 roky
scandir.pas e009b39d8b * check extension of library if it needs to be linked static před 21 roky
scanner.pas 6458bd0ce1 * tvarsym splitted před 21 roky
script.pas ef89703097 * minor fix for macos před 21 roky
switches.pas d763f9e142 browser disabled před 21 roky
symbase.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
symconst.pas 180966c0aa * Split po_public into po_public and po_global (Peter) před 21 roky
symdef.pas 89b1b583c9 * ttempcreatenode.create_reg merged into .create with parameter před 21 roky
symnot.pas 8a9758c5e2 * logs truncated před 21 roky
symsym.pas 14d25d278b mangledname setting moved to place after the complete proc declaration is read před 21 roky
symtable.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
symtype.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
symutil.pas 6458bd0ce1 * tvarsym splitted před 21 roky
systems.pas 6458bd0ce1 * tvarsym splitted před 21 roky
tgobj.pas 18f7aa97dd * changed funcret location back to tlocation před 21 roky
tokens.pas 705868e816 * remove saveregister calling convention před 21 roky
tpexcept.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky
verbose.pas e740a66636 * tparaitem removed, use tparavarsym instead před 21 roky
version.pas 8a9758c5e2 * logs truncated před 21 roky
widestr.pas 581b52422c - remove $IFDEF DELPHI and related code před 21 roky

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