peter c25b06a836 * fix misplaced begin..end for self stabs před 21 roky
..
alpha 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
arm 8b3e00244f * length parameter for copyvaluearray changed to tlocation před 21 roky
html fa0d3d79e0 no message před 23 roky
i386 8b3e00244f * length parameter for copyvaluearray changed to tlocation před 21 roky
ia64 8a9758c5e2 * logs truncated před 21 roky
m68k 66df745917 * small regvar for para fixes před 21 roky
msg 5df0c00360 * better PathExists, fix for too long command line, correction of message před 21 roky
new 8a9758c5e2 * logs truncated před 21 roky
powerpc 99c6740d7d * include pi_do_call if we generate a call instead of internalerroring před 21 roky
sparc d6bffaf5c6 * fixed sparc compile před 21 roky
systems ef6c8dc443 * small updates to make playing with sparc/sunos easier před 21 roky
utils 5d088845d3 + added -h option to show help před 21 roky
vis 8a9758c5e2 * logs truncated před 21 roky
x86 c853d10cc2 * optimized spilling writing when the reg operand can be před 21 roky
x86_64 f2a75dd91f * fixed location size for s64comp před 21 roky
Makefile 458e3c3780 * makefiles regenerated před 21 roky
Makefile.fpc 151478584c * fpcfan copy paste error (ifdef x86_64 should be arm) před 21 roky
README 012af1131e * updated to help compiling the compiler před 22 roky
aasmbase.pas 1d846baf9e * fixed relabeling properly now :) před 21 roky
aasmtai.pas f5471aef6e * more spilling rewrites před 21 roky
aggas.pas 8fb3536f6e * simple regvar support, not yet finished před 21 roky
aopt.pas 8a9758c5e2 * logs truncated před 21 roky
aoptbase.pas 8a9758c5e2 * logs truncated před 21 roky
aoptcs.pas 8a9758c5e2 * logs truncated před 21 roky
aoptda.pas 8a9758c5e2 * logs truncated před 21 roky
aoptobj.pas 8a9758c5e2 * logs truncated před 21 roky
assemble.pas 0395100a07 * reverted USE_SYSUTILS patch until ll patches are readyt před 21 roky
browcol.pas 8a9758c5e2 * logs truncated před 21 roky
browlog.pas 8a9758c5e2 * logs truncated 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 be837c0f23 + Added argument to Stop před 21 roky
cclasses.pas ec720a5800 * insertlistbefore added před 21 roky
cg64f32.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
cg64f64.pas 8a9758c5e2 * logs truncated před 21 roky
cgbase.pas 1eb575fa22 * fixed longbool(<int64>) on sparc před 21 roky
cgobj.pas 8b3e00244f * length parameter for copyvaluearray changed to tlocation před 21 roky
cgutils.pas fabb9c33ac * top_symbol killed před 21 roky
charset.pas 8a9758c5e2 * logs truncated před 21 roky
cmsgs.pas 8a9758c5e2 * logs truncated před 21 roky
comphook.pas 41f7fa8c37 + Check if outputdir exists, Fix exitcode when displaying help pages před 21 roky
compiler.pas 41f7fa8c37 + Check if outputdir exists, Fix exitcode when displaying help pages před 21 roky
compinnr.inc ff36adb056 + macpas style: exit, cycle, leave před 21 roky
comprsrc.pas 8a9758c5e2 * logs truncated 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 b3e3030e6f * remove maxlen field from ansistring/widestrings před 21 roky
cstreams.pas 8a9758c5e2 * logs truncated před 21 roky
cutils.pas d99a5f58f3 * range check error in swapint64 před 21 roky
defcmp.pas e1278ec66f * prefer pchar-string over pchar-pointer před 21 roky
defutil.pas 1eb575fa22 * fixed longbool(<int64>) on sparc před 21 roky
depend e525797c51 * updated copyright to 2000 před 25 roky
dmisc.pas 8a9758c5e2 * logs truncated před 21 roky
dwarf.pas 8a9758c5e2 * logs truncated před 21 roky
export.pas 8a9758c5e2 * logs truncated před 21 roky
finput.pas ff069c5ecc + Patch from Christian Iversen to implement LIBPREFIX/SUFFIX/EXTENSION directives před 21 roky
fmodule.pas b24163cef6 * use realmodulename in unit not used msg před 21 roky
fpcdefs.inc 28e0869e6f - disabled oldregvars because it no longer compiles před 21 roky
fppu.pas e32eac8468 * remove check for shortunitname, it broke units with 8 and 9 chars před 21 roky
gdb.pas 8a9758c5e2 * logs truncated před 21 roky
gendef.pas 8a9758c5e2 * logs truncated před 21 roky
globals.pas 044ec56b56 * default optimization cpu changed to CLassPentium3 před 21 roky
globtype.pas 8fb3536f6e * simple regvar support, not yet finished před 21 roky
htypechk.pas 6ffca1688e * fixed visibility for procsyms před 21 roky
impdef.pas 8a9758c5e2 * logs truncated před 21 roky
import.pas 8a9758c5e2 * logs truncated před 21 roky
link.pas bf57e41ac5 * Exchanged hardcoded "./" to CurDirRelPath 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 5df0c00360 * better PathExists, fix for too long command line, correction of message před 21 roky
msgtxt.inc 5df0c00360 * better PathExists, fix for too long command line, correction of message před 21 roky
nadd.pas 33a834821f * paraloc branch merged před 21 roky
nbas.pas 560a790a57 * gen high tree makes copy in temp when there is a calln před 21 roky
ncal.pas 560a790a57 * gen high tree makes copy in temp when there is a calln před 21 roky
ncgadd.pas 15d3388449 * fixed more sparc overflow stuff před 21 roky
ncgbas.pas 8fb3536f6e * simple regvar support, not yet finished před 21 roky
ncgcal.pas 0573c742e4 * passing a var parameter to var parameter is now also allowed před 21 roky
ncgcnv.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
ncgcon.pas 120c165a62 * constant floating point assignments etc. are now overflow checked před 21 roky
ncgflw.pas 8fb3536f6e * simple regvar support, not yet finished před 21 roky
ncginl.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
ncgld.pas 0573c742e4 * passing a var parameter to var parameter is now also allowed před 21 roky
ncgmat.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
ncgmem.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
ncgopt.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
ncgset.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
ncgutil.pas 66df745917 * small regvar for para fixes před 21 roky
ncnv.pas f1ae6fb6d4 * give error when converting class to interface are not related před 21 roky
ncon.pas 8a9758c5e2 * logs truncated před 21 roky
nflw.pas 67548d9f91 * for loop variable assignment is not allowed anymore před 21 roky
ninl.pas 4978a7635a * another fix for reading of subranges před 21 roky
nld.pas b5d1220bef * fixed crash when current_procinfo was not yet available před 21 roky
nmat.pas 8a9758c5e2 * logs truncated před 21 roky
nmem.pas 8fb3536f6e * simple regvar support, not yet finished před 21 roky
nobj.pas 6ffca1688e * fixed visibility for procsyms před 21 roky
node.pas 8a9758c5e2 * logs truncated 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 5906d4a967 * fix possible wrong typecast před 21 roky
ogbase.pas 8a9758c5e2 * logs truncated před 21 roky
ogcoff.pas 1654d9ad27 don't use .rodata, it doesn't work yet před 21 roky
ogelf.pas 04cce65ea2 * .rodata section support, disabled by default since it doesn't work před 21 roky
oglx.pas 8a9758c5e2 * logs truncated před 21 roky
ogmap.pas 8a9758c5e2 * logs truncated před 21 roky
options.pas feeba0ede6 * bootstrapping with rtti alignment fixed před 21 roky
owar.pas 8a9758c5e2 * logs truncated před 21 roky
owbase.pas 8a9758c5e2 * logs truncated před 21 roky
parabase.pas b0c25b50a0 * symtable allocation rewritten před 21 roky
paramgr.pas 65c3ba277c * ungetregister is now only used for cpuregisters, renamed to před 21 roky
parser.pas 8a9758c5e2 * logs truncated 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 6096fe0789 * use realname in error msg před 21 roky
pdecobj.pas ade0fde929 allow published for constructors před 21 roky
pdecsub.pas d288070a7a * mark non-regable after calling convention is set před 21 roky
pdecvar.pas 560a790a57 * gen high tree makes copy in temp when there is a calln před 21 roky
pexports.pas 8a9758c5e2 * logs truncated před 21 roky
pexpr.pas 1bb51a2667 * all checking for visibility is now done by is_visible_for_object před 21 roky
pinline.pas 8a9758c5e2 * logs truncated před 21 roky
pmodules.pas ef7ae0eab1 * debuginfo fixes před 21 roky
pp.lpi e27d695e7c * Fix new command line parameters 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 8a9758c5e2 * logs truncated před 21 roky
ppu.pas 33a834821f * paraloc branch merged před 21 roky
procinfo.pas 8a9758c5e2 * logs truncated před 21 roky
pstatmnt.pas 6180168a5a * register loopvarsym for fields instead of record variable před 21 roky
psub.pas b0c25b50a0 * symtable allocation rewritten před 21 roky
psystem.pas ff36adb056 + macpas style: exit, cycle, leave před 21 roky
ptconst.pas b3e3030e6f * remove maxlen field from ansistring/widestrings před 21 roky
ptype.pas 8a9758c5e2 * logs truncated před 21 roky
raatt.pas 8a9758c5e2 * logs truncated před 21 roky
rabase.pas 8a9758c5e2 * logs truncated před 21 roky
rasm.pas 8a9758c5e2 * logs truncated před 21 roky
rautils.pas 63cf4464d3 * tvarsym.varregable added, split vo_regable from varoptions před 21 roky
regvars.pas 8fb3536f6e * simple regvar support, not yet finished před 21 roky
rgbase.pas 8a9758c5e2 * logs truncated před 21 roky
rgobj.pas b0ebc06ce6 * removed warning about register used only once před 21 roky
scandir.pas 354004d803 * target netwlibc added (libc is preferred for newer netware versions) před 21 roky
scanner.pas 45e4998167 * Exchanged hardcoded "./" to CurDirRelPath 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 a939095dbe * revert has_localst patch před 21 roky
symconst.pas 63cf4464d3 * tvarsym.varregable added, split vo_regable from varoptions před 21 roky
symdef.pas 4f7667488b * parameter regvar fixes před 21 roky
symnot.pas 8a9758c5e2 * logs truncated před 21 roky
symsym.pas c25b06a836 * fix misplaced begin..end for self stabs před 21 roky
symtable.pas 1bb51a2667 * all checking for visibility is now done by is_visible_for_object před 21 roky
symtype.pas 6ffca1688e * fixed visibility for procsyms před 21 roky
symutil.pas 8a9758c5e2 * logs truncated před 21 roky
systems.pas 354004d803 * target netwlibc added (libc is preferred for newer netware versions) před 21 roky
tgobj.pas 33a834821f * paraloc branch merged před 21 roky
tokens.pas 98df0978e1 + adding operators "|" and "&" for macpas před 21 roky
tpexcept.pas 8a9758c5e2 * logs truncated před 21 roky
verbose.pas 41f7fa8c37 + Check if outputdir exists, Fix exitcode when displaying help pages před 21 roky
version.pas 8a9758c5e2 * logs truncated před 21 roky
widestr.pas 8a9758c5e2 * logs truncated 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