olle a06d889f52 + made fpc work as an MPW tool, by itself calling asm and link. 21 jaren geleden
..
alpha 8a9758c5e2 * logs truncated 21 jaren geleden
arm 960bf7b8b1 * fixed float spilling to use sfm/lfm instead of stf/ldf 21 jaren geleden
html fa0d3d79e0 no message 23 jaren geleden
i386 3a1e8981f4 * do not rename registers across conditional jumps 21 jaren geleden
ia64 8a9758c5e2 * logs truncated 21 jaren geleden
m68k 8a9758c5e2 * logs truncated 21 jaren geleden
msg 8cb7072e5f * fixed several ie9999s when illegal operators were used 21 jaren geleden
new 8a9758c5e2 * logs truncated 21 jaren geleden
powerpc 07e8c04224 * made target macos really work again after the dwarf merge 21 jaren geleden
sparc f3f33a5fea * fixed shr/shl 32 21 jaren geleden
systems a06d889f52 + made fpc work as an MPW tool, by itself calling asm and link. 21 jaren geleden
utils 1563d986c5 * inline procedures at the node tree level, but only under some very 21 jaren geleden
vis 8a9758c5e2 * logs truncated 21 jaren geleden
x86 1dd5fc2b47 * changed first_sse_imreg to first_mm_imreg 21 jaren geleden
x86_64 1dd5fc2b47 * changed first_sse_imreg to first_mm_imreg 21 jaren geleden
Makefile 473bc013f2 * regened after ARM change. 21 jaren geleden
Makefile.fpc 151478584c * fpcfan copy paste error (ifdef x86_64 should be arm) 21 jaren geleden
README 012af1131e * updated to help compiling the compiler 22 jaren geleden
aasmbase.pas 1d846baf9e * fixed relabeling properly now :) 21 jaren geleden
aasmtai.pas cf25a973f8 * fixed alignment of variant records 21 jaren geleden
aggas.pas 692fa34dba * fix for OS/2 and EMX - .section not supported by as.exe 21 jaren geleden
aopt.pas 8a9758c5e2 * logs truncated 21 jaren geleden
aoptbase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
aoptcs.pas 8a9758c5e2 * logs truncated 21 jaren geleden
aoptda.pas 8a9758c5e2 * logs truncated 21 jaren geleden
aoptobj.pas 8a9758c5e2 * logs truncated 21 jaren geleden
assemble.pas a8d3a47a61 + detect assembler errors when using -ap 21 jaren geleden
browcol.pas 8a9758c5e2 * logs truncated 21 jaren geleden
browlog.pas 8a9758c5e2 * logs truncated 21 jaren geleden
bsdcompile 26081ed999 * Simple script which specifies the right params for a try out BSD build 25 jaren geleden
catch.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cclasses.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cg64f32.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cg64f64.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cgbase.pas ed4d14932e * indexword in 1.0.x is broken 21 jaren geleden
cgobj.pas f1bda1700a * support register parameters for inlined procedures + some inline 21 jaren geleden
cgutils.pas fabb9c33ac * top_symbol killed 21 jaren geleden
charset.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cmsgs.pas 8a9758c5e2 * logs truncated 21 jaren geleden
comphook.pas 8a9758c5e2 * logs truncated 21 jaren geleden
compiler.pas 8a9758c5e2 * logs truncated 21 jaren geleden
compinnr.inc ff36adb056 + macpas style: exit, cycle, leave 21 jaren geleden
comprsrc.pas 8a9758c5e2 * logs truncated 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 b3e3030e6f * remove maxlen field from ansistring/widestrings 21 jaren geleden
cstreams.pas 8a9758c5e2 * logs truncated 21 jaren geleden
cutils.pas 8a9758c5e2 * logs truncated 21 jaren geleden
defcmp.pas 8a9758c5e2 * logs truncated 21 jaren geleden
defutil.pas 8a9758c5e2 * logs truncated 21 jaren geleden
depend e525797c51 * updated copyright to 2000 26 jaren geleden
dmisc.pas 8a9758c5e2 * logs truncated 21 jaren geleden
dwarf.pas 8a9758c5e2 * logs truncated 21 jaren geleden
export.pas 8a9758c5e2 * logs truncated 21 jaren geleden
finput.pas ff069c5ecc + Patch from Christian Iversen to implement LIBPREFIX/SUFFIX/EXTENSION directives 21 jaren geleden
fmodule.pas 8a9758c5e2 * logs truncated 21 jaren geleden
fpcdefs.inc cf25a973f8 * fixed alignment of variant records 21 jaren geleden
fppu.pas a939095dbe * revert has_localst patch 21 jaren geleden
gdb.pas 8a9758c5e2 * logs truncated 21 jaren geleden
gendef.pas 8a9758c5e2 * logs truncated 21 jaren geleden
globals.pas 2a4605eabc + made fpc work as an MPW tool, by itself calling asm and link. 21 jaren geleden
globtype.pas 41bdd6178c + added external facilities for macpas 21 jaren geleden
htypechk.pas cf3c1198ea * include unit name in error messages when types are the same 21 jaren geleden
impdef.pas 8a9758c5e2 * logs truncated 21 jaren geleden
import.pas 8a9758c5e2 * logs truncated 21 jaren geleden
link.pas 75c3c8b259 * shell now returns an exitcode 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 8cb7072e5f * fixed several ie9999s when illegal operators were used 21 jaren geleden
msgtxt.inc 8cb7072e5f * fixed several ie9999s when illegal operators were used 21 jaren geleden
nadd.pas e3eb4f8359 * fixed "if @procvar_of_object <> nil" in Delphi/TP mode for for non-x86 21 jaren geleden
nbas.pas ddf175f171 + temps can now also hold fpu values in registers (take care with use, 21 jaren geleden
ncal.pas 6368652be2 * fixed several sparc alignment issues 21 jaren geleden
ncgadd.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ncgbas.pas ddf175f171 + temps can now also hold fpu values in registers (take care with use, 21 jaren geleden
ncgcal.pas 04a69ced17 + Fix for bug #3207 from Peter 21 jaren geleden
ncgcnv.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ncgcon.pas 120c165a62 * constant floating point assignments etc. are now overflow checked 21 jaren geleden
ncgflw.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ncginl.pas 4275383b15 * range checks fixed 21 jaren geleden
ncgld.pas cf25a973f8 * fixed alignment of variant records 21 jaren geleden
ncgmat.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ncgmem.pas 8affe37ee1 + Fixed range check for non-constant indexes in strings 21 jaren geleden
ncgopt.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ncgset.pas 4275383b15 * range checks fixed 21 jaren geleden
ncgutil.pas 5ac21c998a * don't finalize typed consts (fixes bug3212, but causes memory leak; 21 jaren geleden
ncnv.pas 120c165a62 * constant floating point assignments etc. are now overflow checked 21 jaren geleden
ncon.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nflw.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ninl.pas 120c165a62 * constant floating point assignments etc. are now overflow checked 21 jaren geleden
nld.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nmat.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nmem.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nobj.pas a939095dbe * revert has_localst patch 21 jaren geleden
node.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nopt.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nset.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nstate.pas 8a9758c5e2 * logs truncated 21 jaren geleden
nutils.pas c5ec202cd1 * some improvements to node complexity calculations 21 jaren geleden
ogbase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ogcoff.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ogelf.pas 8a9758c5e2 * logs truncated 21 jaren geleden
oglx.pas 8a9758c5e2 * logs truncated 21 jaren geleden
ogmap.pas 8a9758c5e2 * logs truncated 21 jaren geleden
options.pas 4b0b17a5aa + allow fileextension .p, in mode macpas 21 jaren geleden
owar.pas 8a9758c5e2 * logs truncated 21 jaren geleden
owbase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
paramgr.pas f1bda1700a * support register parameters for inlined procedures + some inline 21 jaren geleden
parser.pas 8a9758c5e2 * logs truncated 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 8a9758c5e2 * logs truncated 21 jaren geleden
pdecobj.pas 8a9758c5e2 * logs truncated 21 jaren geleden
pdecsub.pas 25c2441fa5 * only set the mangled name immediately for external procedures in macpas 21 jaren geleden
pdecvar.pas c7544e69de + padalgingment field for recordsymtables (saved by recorddefs) 21 jaren geleden
pexports.pas 8a9758c5e2 * logs truncated 21 jaren geleden
pexpr.pas 98df0978e1 + adding operators "|" and "&" for macpas 21 jaren geleden
pinline.pas 8a9758c5e2 * logs truncated 21 jaren geleden
pmodules.pas 189214f79b + Added automatic use of unit macpas under mode macpas 21 jaren geleden
pp.lpi 72556ae39f * fix compile problem 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 8a9758c5e2 * logs truncated 21 jaren geleden
ppu.pas c7544e69de + padalgingment field for recordsymtables (saved by recorddefs) 21 jaren geleden
procinfo.pas 8a9758c5e2 * logs truncated 21 jaren geleden
pstatmnt.pas 8a9758c5e2 * logs truncated 21 jaren geleden
psub.pas 6368652be2 * fixed several sparc alignment issues 21 jaren geleden
psystem.pas ff36adb056 + macpas style: exit, cycle, leave 21 jaren geleden
ptconst.pas b3e3030e6f * remove maxlen field from ansistring/widestrings 21 jaren geleden
ptype.pas 8a9758c5e2 * logs truncated 21 jaren geleden
raatt.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rabase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rasm.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rautils.pas 8a9758c5e2 * logs truncated 21 jaren geleden
regvars.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rgbase.pas 8a9758c5e2 * logs truncated 21 jaren geleden
rgobj.pas c4e909e316 * Add check <= 255 when adding to adj_colours 21 jaren geleden
scandir.pas 5a67308b98 + added directive LibExport for macpas, which does nothing atm 21 jaren geleden
scanner.pas a47844c817 * sizeof in the preprocessor handles types now as well 21 jaren geleden
script.pas ef89703097 * minor fix for macos 21 jaren geleden
switches.pas 41bdd6178c + added external facilities for macpas 21 jaren geleden
symbase.pas a939095dbe * revert has_localst patch 21 jaren geleden
symconst.pas a939095dbe * revert has_localst patch 21 jaren geleden
symdef.pas c7544e69de + padalgingment field for recordsymtables (saved by recorddefs) 21 jaren geleden
symnot.pas 8a9758c5e2 * logs truncated 21 jaren geleden
symsym.pas 0ccc15675e * add cprefix to procedures which are autoamtically marked as external in 21 jaren geleden
symtable.pas c7544e69de + padalgingment field for recordsymtables (saved by recorddefs) 21 jaren geleden
symtype.pas a939095dbe * revert has_localst patch 21 jaren geleden
symutil.pas 8a9758c5e2 * logs truncated 21 jaren geleden
systems.pas 230105093d * only enable dwarf for supported platforms 21 jaren geleden
tgobj.pas 8a9758c5e2 * logs truncated 21 jaren geleden
tokens.pas 98df0978e1 + adding operators "|" and "&" for macpas 21 jaren geleden
tpexcept.pas 8a9758c5e2 * logs truncated 21 jaren geleden
verbose.pas 8a9758c5e2 * logs truncated 21 jaren geleden
version.pas 8a9758c5e2 * logs truncated 21 jaren geleden
widestr.pas 8a9758c5e2 * logs truncated 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