florian ae836f878f + handle also widestring constants in constant string expressions 17 anni fa
..
alpha a23fa2e81e * moved (unfinished) routines related to writing taicpu's to ppu files 18 anni fa
arm 60ecb64346 * Fixed loading of single floating point values from memory to register for ARM hardfloat. 17 anni fa
avr 48fb130be3 * fixed fpu type setting for avr 17 anni fa
html fa0d3d79e0 no message 23 anni fa
i386 3b72bf98b0 * fixed short/smallint add/sub peephole in case of operations with 17 anni fa
ia64 32098ceea9 * first iA-64 register stuff 19 anni fa
m68k b70bf05ad5 * I hope it's proper fix for r10688. 17 anni fa
mips 00d6a03b2c + default code now preserves mm registers 18 anni fa
msg 0167a576f0 * Fixed some typos 17 anni fa
powerpc ee76679326 * cleaned up r10705 for ppc, improved comments 17 anni fa
powerpc64 ee76679326 * cleaned up r10705 for ppc, improved comments 17 anni fa
ppcgen 0645313da5 * fixed wrong internal error in case a swapped set <op> setelement 17 anni fa
sparc 263984f874 * fixed a_load_ref_reg for OS_S8->OS_16 for ppc32, ppc64 and sparc 17 anni fa
systems f2437bb479 * Updated nds linker script for new binutils 17 anni fa
utils 0b2f80a38b * regenerate Makefiles to get armeb-linux support globally (also arm-darwin, so it seems) 17 anni fa
vis b7fe6797bf Merged revisions 2921-2922,2925 via svnmerge from 19 anni fa
x86 3d2630c661 * fixed wrong location.size (sign) for x86's in_abs_long + test 17 anni fa
x86_64 a6b9b3e00a * fixed a_param_ref for source sizes < 8 bytes 17 anni fa
COPYING d4b8a224a1 + Added license to this library 21 anni fa
MPWMake 05d6f0e94d macos: added a fake sysutils for use by compiler, and fixed some tests 19 anni fa
Makefile 0b2f80a38b * regenerate Makefiles to get armeb-linux support globally (also arm-darwin, so it seems) 17 anni fa
Makefile.fpc b0838b13d7 * add armeb target to compiler/Makefiles 17 anni fa
README f36e5411af * split cpu64bit compiler define into 17 anni fa
aasmbase.pas 9f0ca44c94 * new tf_smartlink_library flag 18 anni fa
aasmdata.pas 4ca3a590e8 * Labels that are defined or referenced in a different lexical level 17 anni fa
aasmsym.pas a23fa2e81e * moved (unfinished) routines related to writing taicpu's to ppu files 18 anni fa
aasmtai.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
aggas.pas 52722b2cab * allocate .bss entries manual so we can take care of alignment 17 anni fa
aopt.pas 4010d66c2c * arm cond. instruction support 19 anni fa
aoptbase.pas 658c46b903 * remove tdictionary and tindexarray 19 anni fa
aoptcs.pas b7fe6797bf Merged revisions 2921-2922,2925 via svnmerge from 19 anni fa
aoptda.pas 658c46b903 * remove tdictionary and tindexarray 19 anni fa
aoptobj.pas e4e6f8112d * fixed some warnings about hidden constructors 18 anni fa
assemble.pas a9c9ca0115 * set elf flags for soft float on arm 17 anni fa
browcol.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
bsdcompile 26081ed999 * Simple script which specifies the right params for a try out BSD build 25 anni fa
catch.pas 05d6f0e94d macos: added a fake sysutils for use by compiler, and fixed some tests 19 anni fa
cclasses.pas cadcfa76d8 * optimized TLinkedList.clear so it can use regvars for everything in 18 anni fa
cfidwarf.pas 870be04a3f * use dwarf_reg() 19 anni fa
cfileutl.pas f1bd686065 * re-applied r7485, which got lost in r7639 because an old 17 anni fa
cg64f32.pas 9adb202a92 * Rework the constexprint to allow operations from low(int64) to high(qword). 18 anni fa
cgbase.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
cgobj.pas ec943198fd * Properly fill treference.alignment when variable is loaded by tcgloadnode. It allows code generator to insert unaligned handling if needed. 17 anni fa
cgutils.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
charset.pas edffc31139 * fixed crash with empty codepage 20 anni fa
cmsgs.pas 241c65d5ec * optimize fixpath, findfile to not require temp ansistrings 18 anni fa
comphook.pas 241c65d5ec * optimize fixpath, findfile to not require temp ansistrings 18 anni fa
compiler.pas a724d80e81 * debuginfo initialized per unit 18 anni fa
compinnr.inc fb8bbd5ff0 + inline abs(<longint>) on x86 18 anni fa
comprsrc.pas ba081ab36f * Improved finding of resource compiler during cross-compilation. 17 anni fa
constexp.pas 2413d4b43f * fixed constant evaluation check for negvalue+posvalue (mantis #11216) 17 anni fa
cp1251.pas 28bab3fb4f - removed some unused variables 18 anni fa
cp437.pas d704af7216 fix compilation for {$T+} linux/win 19 anni fa
cp850.pas d704af7216 fix compilation for {$T+} linux/win 19 anni fa
cp866.pas 2fe79903d6 * added missing "reserved" field to new code page files to fix warnings 18 anni fa
cp8859_1.pas d704af7216 fix compilation for {$T+} linux/win 19 anni fa
cp8859_5.pas 2fe79903d6 * added missing "reserved" field to new code page files to fix warnings 18 anni fa
crefs.pas 9adb202a92 * Rework the constexprint to allow operations from low(int64) to high(qword). 18 anni fa
cresstr.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
cstreams.pas 71193c0f2c * fixed bootstrapping with 2.0.4 18 anni fa
cutils.pas 3e1e6d25f0 * Fixed overload choosing by arm native compiler. 17 anni fa
dbgbase.pas 39fa81d40e * fixed stabs debug info for webtbs/tw9766 again 17 anni fa
dbgdwarf.pas 42a4684f60 * use global label to refer enum subrange type for setdefs 17 anni fa
dbgstabs.pas 81ad9ea6e8 * fixed typo in r10602 causing the names of all record structures of 17 anni fa
defcmp.pas 85b9c65f51 * fixed support in macpas mode for anonymous procedure/function types 17 anni fa
defutil.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
export.pas 150eda304b * factored unix exports handling from t_bsd and t_linux into expunix unit 17 anni fa
expunix.pp 150eda304b * factored unix exports handling from t_bsd and t_linux into expunix unit 17 anni fa
finput.pas de918497ef * support -Xg under linux 17 anni fa
fmodule.pas 174de3eab1 Merged revisions 9693-10480 via svnmerge from 17 anni fa
fpccrc.pas 793fd8fc09 * Add -Xg to help pages 17 anni fa
fpcdefs.inc 5826b9bdad + define cpunodefaultint 17 anni fa
fppu.pas 86f90d8ac1 + support for setting the name of "main" (-XM command line parameter) in 17 anni fa
gendef.pas 106fe68ce6 * renamed TStringList to TCmdStrList, in general use TCmdStr instead of shortstrings to fix bug #6351 18 anni fa
globals.pas b0838b13d7 * add armeb target to compiler/Makefiles 17 anni fa
globtype.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
htypechk.pas 76e23fc54e * fixed internalerror when having to choose between different 17 anni fa
impdef.pas f1067607b6 + workaround for non-working dircache on morphos/amiga 18 anni fa
import.pas bf1c390027 * refactor import library generation 19 anni fa
link.pas de918497ef * support -Xg under linux 17 anni fa
msgidx.inc a87de2ca9b * regenerated messages 17 anni fa
msgtxt.inc a87de2ca9b * regenerated messages 17 anni fa
nadd.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
nbas.pas ed7511de58 * safeguard the nf_block_with_exit flag when simplifying blockn and 18 anni fa
ncal.pas 83b7f81f81 + add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone) 17 anni fa
ncgadd.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
ncgbas.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
ncgcal.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
ncgcnv.pas 24be2c31f7 * Fixed tw11027. 17 anni fa
ncgcon.pas 632570fc74 * fixed compilation with 2.2.0 on big endian systems after r10432 17 anni fa
ncgflw.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
ncginl.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
ncgld.pas 9595256ff5 * cleaned up overleft of 10710 17 anni fa
ncgmat.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
ncgmem.pas 242b335531 * fixed widestring range checking on win64 (mantis #10450, fix also 17 anni fa
ncgopt.pas 6b8aed593f * remove registers{int/mmx/fpu} from firstpass 18 anni fa
ncgrtti.pas d26d792e7b * Do not align TTypeInfo.Name field in enumdef_rtti since TTypeInfo record is defined with {$PACKRECORDS 1}. It fixes tw8660 for ARM. 17 anni fa
ncgset.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
ncgutil.pas 4e7e0f620a * first try to fix #10863 (don't do SSL in case left is already handled in an assignment node) 17 anni fa
ncnv.pas b70bf05ad5 * I hope it's proper fix for r10688. 17 anni fa
ncon.pas 0ae33aeab0 * the result of not(dword(ordconst)) has to be dword as well for Delphi 17 anni fa
nflw.pas 2df5878ee4 * deref childs of loopnodes (needed to fix mantis #11182 on 2.2.1; 17 anni fa
ninl.pas 7657cd7b6c * result of prefetch is voidtype, not voidpointertype (fixes mantis #11275) 17 anni fa
nld.pas b5c114934d * reverted 9727 and made a better fix for it 17 anni fa
nmat.pas 931aef4daa * make result of not(constant) (with constant type <= sinttype) 17 anni fa
nmem.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
nobj.pas d83722076f * fixed implements for interfaces 17 anni fa
node.pas 84159b3cbb * optimize away unnecessary implicit upcasts to int64 for subtractions 17 anni fa
nopt.pas 6b8aed593f * remove registers{int/mmx/fpu} from firstpass 18 anni fa
nset.pas 8fe43377e1 + convert case <boolean> of into if statement, resolves #10517 17 anni fa
nstate.pas 790a4fe2d3 * log and id tags removed 20 anni fa
nutils.pas 6c53785e3a * first part of implements clean up and fixing 17 anni fa
ogbase.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
ogcoff.pas cad678840e + internal linker takes care of setpeflags 17 anni fa
ogelf.pas a9c9ca0115 * set elf flags for soft float on arm 17 anni fa
oglx.pas 658c46b903 * remove tdictionary and tindexarray 19 anni fa
ogmap.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
optbase.pas 45cda67f3f + first basically working (not all node types yet) dfa implementation determining life information 18 anni fa
optcse.pas 8db40851c0 * fixed some crashes 18 anni fa
optdfa.pas a2ac6c698d * fixed dfa for raise nodes 18 anni fa
options.pas a324744cbe * fixed checking for defined/undefined macro's in the configuration file 17 anni fa
opttail.pas 6434772c3c * error message when a goto label is optimized away 18 anni fa
optunrol.pas e10c55d73c * invalid typecast 18 anni fa
optutils.pas 63b35fdb2e + give more sophisticated warnings about uninitalized variables when life info is available 18 anni fa
owar.pas cb246eb781 * Remove dos,strings units, use SysUtils instead 19 anni fa
owbase.pas 390a4236e2 * do not use F field to get TObjectReader FileName as it is freed inside openfile method 18 anni fa
parabase.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
paramgr.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
parser.pas 174de3eab1 Merged revisions 9693-10480 via svnmerge from 17 anni fa
pass_1.pas 168e652d42 + support for simplifying simple inline functions down to a single 18 anni fa
pass_2.pas 4e7e0f620a * first try to fix #10863 (don't do SSL in case left is already handled in an assignment node) 17 anni fa
pbase.pas d8d96f14e6 + experimental directive, resolves #10833 17 anni fa
pdecl.pas 28bab3fb4f - removed some unused variables 18 anni fa
pdecobj.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
pdecsub.pas 95c69a64ad * don't generate a hidden parameter for static class methods, resolves #10998 17 anni fa
pdecvar.pas 7e4750ac50 * workaround for default property constant value limitations 17 anni fa
pexports.pas 2f25c4422b * export names aren't mangled under OS/2 either (follow-up 17 anni fa
pexpr.pas 8adc596c16 - revert fix for #10927: the old behaviour was Delphi compatible, 17 anni fa
pinline.pas 6b8aed593f * remove registers{int/mmx/fpu} from firstpass 18 anni fa
pmodules.pas 99e1e85447 * fixed execution of finalization section of smart linked shared 17 anni fa
pp.lpi b76211b426 * more improvements 19 anni fa
pp.pas f36e5411af * split cpu64bit compiler define into 17 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
ppc68k.lpi 0d38bda5c4 * small m68k-linux fixes 19 anni fa
ppcarm.lpi 8998a04bf6 * initial copy from i386 19 anni fa
ppcppc.lpi d5aea5e14a + powerpc lazarus project file 18 anni fa
ppcsparc.lpi b54185401c + sparc lazarus project file 18 anni fa
ppheap.pas ef7bd58c54 * germanism removed (aktfilepos -> current_filepos) 19 anni fa
ppu.pas 0fb87b67b6 * changed string argument of tppufile.putstring into a constant 17 anni fa
ppx86_64.lpi f6e9d133ab + x86_64 units for lazarus 18 anni fa
procinfo.pas 335bc9fd46 + PIC support for darwin/ppc32 (-Cg works now, no regressions in test 18 anni fa
pstatmnt.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
psub.pas 21f14aaeff * fixed "array of const" check in r10473 (+ fixed indentation) 17 anni fa
psystem.pas 83b7f81f81 + add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone) 17 anni fa
ptconst.pas ae836f878f + handle also widestring constants in constant string expressions 17 anni fa
ptype.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
raatt.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
rabase.pas b7fe6797bf Merged revisions 2921-2922,2925 via svnmerge from 19 anni fa
rasm.pas 1684a6fc32 * replaced tdictionary with tfphashlist 19 anni fa
rautils.pas f36e5411af * split cpu64bit compiler define into 17 anni fa
regvars.pas 658c46b903 * remove tdictionary and tindexarray 19 anni fa
rescmn.pas 174de3eab1 Merged revisions 9693-10480 via svnmerge from 17 anni fa
rgbase.pas 790a4fe2d3 * log and id tags removed 20 anni fa
rgobj.pas 6744b747b8 * remove goto, that prevents optimizations 17 anni fa
scandir.pas 174de3eab1 Merged revisions 9693-10480 via svnmerge from 17 anni fa
scanner.pas a324744cbe * fixed checking for defined/undefined macro's in the configuration file 17 anni fa
script.pas 0ac6e82c1f * fixed handling of directories with spaces for LdSupportsNoResponseFile- 18 anni fa
switches.pas c7100799ed + forbid usage of $E on targets supporting no fpu emulation 18 anni fa
symbase.pas 91dbd27a42 * cleanup deleting of defs 18 anni fa
symconst.pas 8f239d04b6 * cleanup and simplify the set type handling 17 anni fa
symdef.pas c56c6e976c + allow dyn. arrays to be published, resolves #10493 17 anni fa
symnot.pas 790a4fe2d3 * log and id tags removed 20 anni fa
symsym.pas 4ca3a590e8 * Labels that are defined or referenced in a different lexical level 17 anni fa
symtable.pas 19c7d1d14c * reset aktobjectdef before compilation, resolves #10971 17 anni fa
symtype.pas 1cd65c647d * Convert guid load/save to endian safe code. 18 anni fa
symutil.pas 9adb202a92 * Rework the constexprint to allow operations from low(int64) to high(qword). 18 anni fa
systems.pas b0838b13d7 * add armeb target to compiler/Makefiles 17 anni fa
tgobj.pas ec943198fd * Properly fill treference.alignment when variable is loaded by tcgloadnode. It allows code generator to insert unaligned handling if needed. 17 anni fa
tokens.pas d8d96f14e6 + experimental directive, resolves #10833 17 anni fa
verbose.pas e9108ed51c * fixed skipping of character after number of errors to report in 17 anni fa
version.pas c13ff3729b * Merged 2.3 branch changes: 18 anni fa
widestr.pas 3f81a4ed65 * make code page name parsing case insensitive (mantis #8930) 18 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
cpu64bitaddr The targets use a 64-bit address space (pointers and
the default integer type are 64 bit)
cpu64bitalu The target cpu has 64-bit registers available (unless
cpu64bitaddr is also defined, pointers and default
integer type remain 32 bit, but the cpu can perform
64 bit calculations directly without needing helpers)
-----------------------------------------------------------------

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