fpc/compiler
2012-08-23 12:59:45 +00:00
..
alpha Remove tai_ent, which is moved to aasmtai unit 2012-07-04 16:35:46 +00:00
arm * opcode spelling fixed 2012-08-23 08:55:07 +00:00
avr + NR_DEFAULTFLAGS and RS_DEFAULTFLAGS for all CPUs with flags added 2012-08-22 19:38:27 +00:00
generic
html
i386 * Split most CPU-specific code from ogelf.pas into newly created cpuelf.pas units in CPU subdirectories. 2012-08-23 11:49:49 +00:00
ia64 * -O4 switch for optimizations which are correct but which might have unexpected effects 2012-08-09 18:58:54 +00:00
jvm * fixed not(pasbool64) (has to be "xor 1" rather than "xor -1") 2012-08-21 20:04:19 +00:00
m68k + NR_DEFAULTFLAGS and RS_DEFAULTFLAGS for all CPUs with flags added 2012-08-22 19:38:27 +00:00
mips Correct code after change in set_common_funcretloc_info which made the call to ret_in_param always return false 2012-08-23 09:50:47 +00:00
msg * support referencing "result" in nostackframe pure assembler routines if 2012-08-21 19:51:40 +00:00
powerpc + NR_DEFAULTFLAGS and RS_DEFAULTFLAGS for all CPUs with flags added 2012-08-22 19:38:27 +00:00
powerpc64 + NR_DEFAULTFLAGS and RS_DEFAULTFLAGS for all CPUs with flags added 2012-08-22 19:38:27 +00:00
ppcgen + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +00:00
sparc Add possibility to test sparc elf generator with -dTEST_AGSPARC_ELF 2012-08-23 12:59:45 +00:00
systems * respect Dontlinkstdlibpath when adding a default library search path 2012-08-04 17:29:07 +00:00
utils Add defautl mips name and use mips instead of mipseb 2012-06-26 07:20:12 +00:00
vis + ossinttype/osuinttype defs that correspond to OS_SINT/OS_INT for use in 2012-05-12 16:03:15 +00:00
x86 + NR_DEFAULTFLAGS and RS_DEFAULTFLAGS for all CPUs with flags added 2012-08-22 19:38:27 +00:00
x86_64 * Split most CPU-specific code from ogelf.pas into newly created cpuelf.pas units in CPU subdirectories. 2012-08-23 11:49:49 +00:00
aasmbase.pas + Add global_used callback procedure 2012-07-04 16:31:20 +00:00
aasmdata.pas * synchronised with trunk up to r21067 2012-04-26 21:24:20 +00:00
aasmsym.pas
aasmtai.pas * comments and explanations on tai_regalloc.keep field 2012-08-22 19:52:08 +00:00
aggas.pas Support ait_ent and ait_ent_end 2012-07-04 16:36:33 +00:00
agjasmin.pas * fixed uninitialized TJasminAssembler.ConstAssignmentValue() function result 2012-08-19 13:54:28 +00:00
aopt.pas * more consistent updates of used registers 2012-08-22 19:52:15 +00:00
aoptbase.pas + RegUsedBetween 2012-08-22 19:50:55 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas * check also register type in FindRegalloc 2012-08-22 19:52:43 +00:00
asmutils.pas * do not create a global symbol in the middle of ansi/unicodestring 2012-05-19 10:19:35 +00:00
assemble.pas * If alignment requirement of data is bigger than alignment of the section being written to, increase section alignment to match. This mostly affects cases of non-smart linking, where wrong initial alignment used to cause hard to catch misalignment issues. It also largely obsoletes the need to supply the initial section alignment (hidden tai_section constructor,etc). 2012-07-24 08:38:11 +00:00
browcol.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
bsdcompile
catch.pas
ccharset.pas * make compiler compilable with 2.4.4 rtl 2011-09-28 18:54:32 +00:00
cclasses.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
cfidwarf.pas
cfileutl.pas * GNU ld only supports double quotes in its response file -> requote there 2012-05-03 12:41:16 +00:00
cg64f32.pas * moved subsetref/reg and bit_set/test support from cgobj to hlcgobj for 2012-05-13 12:33:10 +00:00
cgbase.pas * moved definition of maxcpuregister and tcpuregisterset from cgbase to 2012-06-15 18:24:35 +00:00
cghlcpu.pas + cghlcpu unit with thlbasecgcpu class that overrides all abstract tcg 2012-04-28 14:27:31 +00:00
cgobj.pas * converted tcg.g_releasevaluepara_openarray() to thlcg 2012-07-11 15:23:18 +00:00
cgutils.pas * moved definition of maxcpuregister and tcpuregisterset from cgbase to 2012-06-15 18:24:35 +00:00
cmsgs.pas
comphook.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
compiler.pas + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
compinnr.inc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
comprsrc.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
constexp.pas
COPYING.txt
cp437.pas
cp850.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp866.pas
cp1251.pas
cp1252.pp * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_1.pas
cp8859_5.pas
cpid.pas
crefs.pas * more properties fixed 2009-11-12 18:11:10 +00:00
cresstr.pas * do not create a global symbol in the middle of ansi/unicodestring 2012-05-19 10:19:35 +00:00
cstreams.pas
cutils.pas Reworked ispowerof2 in cutils.pas 2012-07-04 13:25:25 +00:00
cwindirs.pp
dbgbase.pas * correctly deal with writing debug information in the Stabs writer for class 2012-07-26 14:27:10 +00:00
dbgdwarf.pas * small correction to previous commit: the offset of DW_OP_bregx is signed 2012-08-22 18:42:35 +00:00
dbgstabs.pas * correctly deal with writing debug information in the Stabs writer for class 2012-07-26 14:27:10 +00:00
dbgstabx.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
defcmp.pas * also allow conversion of niln to forward-defined pointerdef 2012-08-07 11:23:00 +00:00
defutil.pas * fixed java.lang.String and Pascal string comparisons after operator 2012-08-19 13:57:48 +00:00
export.pas + support for exporting Objective-C classes from dynamic libraries. It works 2009-09-27 15:40:52 +00:00
expunix.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
finput.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
fmodule.pas * fixed (real)modulename memory leak when changing the module name 2012-07-23 13:49:36 +00:00
fpccrc.pas
fpcdefs.inc fpcdefs.inc: Set fpc_compiler_has_fixup_jmps for powerpcXX and mips CPUs. 2012-07-09 08:59:13 +00:00
fppu.pas fppu.pas, tppumodule.readsourcefiles: 2012-06-29 06:36:26 +00:00
gendef.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
globals.pas * Use field by field write of current_settings for replaytoken and remove packed attribute for tsettings type 2012-06-13 21:51:59 +00:00
globtype.pas * -O4 switch for optimizations which are correct but which might have unexpected effects 2012-08-09 18:58:54 +00:00
hlcg2ll.pas + track usage of flags by using a new register RS_/NR_DEFAULTFLAGS 2012-08-22 19:37:51 +00:00
hlcgobj.pas + track usage of flags by using a new register RS_/NR_DEFAULTFLAGS 2012-08-22 19:37:51 +00:00
htypechk.pas * fixed java.lang.String and Pascal string comparisons after operator 2012-08-19 13:57:48 +00:00
impdef.pas * moved maybequoted() from cutils to cfileutl and let its behaviour vary 2012-04-16 19:52:36 +00:00
import.pas
ldscript.pas + Basic ld script parsing capabilities (barely enough to parse glibc2.1 'libc.so' files, lacks any error handling). 2012-08-21 08:37:39 +00:00
link.pas + Basic ld script parsing capabilities (barely enough to parse glibc2.1 'libc.so' files, lacks any error handling). 2012-08-21 08:37:39 +00:00
macho.pas
machoutils.pas
Makefile + rule to generate avr register include files 2012-08-22 19:37:58 +00:00
Makefile.fpc + rule to generate avr register include files 2012-08-22 19:37:58 +00:00
MPWMake
msgidx.inc * support referencing "result" in nostackframe pure assembler routines if 2012-08-21 19:51:40 +00:00
msgtxt.inc * support referencing "result" in nostackframe pure assembler routines if 2012-08-21 19:51:40 +00:00
nadd.pas * don't insert type conversions in add nodes if both arguments are constant 2012-05-26 14:14:59 +00:00
nbas.pas * only don't pre-finalize funcret temps that are passed by reference to the 2012-07-23 23:55:00 +00:00
ncal.pas * don't copy const parameters passed by reference even if their complexity is >1, 2012-08-21 16:31:58 +00:00
ncgadd.pas * throw an internal error if code generation depends on expectloc but expectloc and real loc do not match 2012-08-13 15:02:55 +00:00
ncgbas.pas * support referencing "result" in nostackframe pure assembler routines if 2012-08-21 19:51:40 +00:00
ncgcal.pas * fixed memory leaks in the compiler introduced in r21862 by marking and 2012-07-23 13:49:29 +00:00
ncgcnv.pas + track usage of flags by using a new register RS_/NR_DEFAULTFLAGS 2012-08-22 19:37:51 +00:00
ncgcon.pas fpcdefs.inc: Set fpc_compiler_has_fixup_jmps for powerpcXX and mips CPUs. 2012-07-09 08:59:13 +00:00
ncgflw.pas + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +00:00
ncginl.pas * moved assert handling from second to first pass, so that the code generator 2012-07-11 11:49:47 +00:00
ncgld.pas + track usage of flags by using a new register RS_/NR_DEFAULTFLAGS 2012-08-22 19:37:51 +00:00
ncgmat.pas + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +00:00
ncgmem.pas + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas * migrated g_copyshortstring, g_incrrefcount and g_array_rtti_helper to thlcg 2012-06-24 21:36:28 +00:00
ncgrtti.pas + Reduce the amount of RTTI by not generating 'init' information if it will end up being the same as the 'full' one (which is the case of most simple types). The new behavior can be customized for every tdef by overriding needs_separate_initrtti method. 2012-04-27 10:17:59 +00:00
ncgset.pas * factored out tcginnode.in_smallset 2012-08-11 22:07:36 +00:00
ncgutil.pas + track usage of flags by using a new register RS_/NR_DEFAULTFLAGS 2012-08-22 19:37:51 +00:00
ncnv.pas * do not search for overloaded operators while parsing constant declarations, 2012-08-06 20:13:06 +00:00
ncon.pas * synchronised with trunk up to r21067 2012-04-26 21:24:20 +00:00
nflw.pas + implement auto inlining (-Ooautoinline) 2012-05-19 13:30:02 +00:00
ngenutil.pas * converted code to trash variables (-gt) to operate at the node tree level, 2012-05-26 11:32:39 +00:00
ngtcon.pas * support pointer constants as initialisation values for procvar typed 2012-05-20 14:51:15 +00:00
ninl.pas * use ptrsinttype instead of sinttype as code parameter for val: for "normal" 32/64 bit targets this does not matter, 2012-08-21 16:46:19 +00:00
nld.pas * fixed internalerror after invalid type node in subscript node 2012-07-15 18:17:29 +00:00
nmat.pas * correctly change the signdness information of tordconstnodes that are 2012-05-26 13:31:23 +00:00
nmem.pas * fixed (not harmless) class cast error when indexing an array[orddef] using 2012-05-08 20:02:26 +00:00
nobj.pas * give an error instead of a note on the JVM target when overriding a 2012-07-10 09:20:11 +00:00
nobjc.pas
node.pas * write flags in tnode.printnodeinfo 2012-08-13 14:50:37 +00:00
nopt.pas * fixed genmultistringadd() optimization for jvm and enabled it 2012-04-16 20:51:51 +00:00
nset.pas * free temps created for case-of-string-statements 2012-08-16 19:22:23 +00:00
nstate.pas
nutils.pas * document tforeachprocmethod 2012-08-19 21:18:28 +00:00
objcdef.pas
objcgutl.pas
objcutil.pas * don't generate a classClass call for objc loadvmtaddrnodes generated 2012-03-29 20:54:47 +00:00
ogbase.pas + Basic ld script parsing capabilities (barely enough to parse glibc2.1 'libc.so' files, lacks any error handling). 2012-08-21 08:37:39 +00:00
ogcoff.pas + Added method TObjSection.writeReloc_internal to write relocations to given section+offset without need to have a symbol at target location. 2012-08-15 12:22:07 +00:00
ogelf.pas * Split most CPU-specific code from ogelf.pas into newly created cpuelf.pas units in CPU subdirectories. 2012-08-23 11:49:49 +00:00
oglx.pas
ogmacho.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogmap.pas
ognlm.pas + Implemented two-stage removal of empty exe sections. Candidates for removal are first marked with oso_disabled flag, then actually removed. Descendants of TExeOutput that override MemPos_Start may modify list of sections pending removal. In particular, the COFF-specific .reloc section no longer has to be handled in base TExeOutput class. 2012-07-26 10:04:12 +00:00
optbase.pas
optcse.pas * updated comments to reflect latest changes to cse 2012-08-09 20:18:04 +00:00
optdead.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
optdfa.pas
options.pas * default to VFPv2 on Darwin/ARM (all iOS devices ever released until 2012-08-19 09:36:46 +00:00
optloop.pas + implement auto inlining (-Ooautoinline) 2012-05-19 13:30:02 +00:00
opttail.pas
optutils.pas
optvirt.pas
owar.pas + Basic ld script parsing capabilities (barely enough to parse glibc2.1 'libc.so' files, lacks any error handling). 2012-08-21 08:37:39 +00:00
owbase.pas * Don't access tcfilestream.size 3 times in sequence, as each access costs two seeks (syscalls). 2012-07-12 16:10:34 +00:00
parabase.pas * fixed memory leaks in the compiler introduced in r21862 by marking and 2012-07-23 13:49:29 +00:00
paramgr.pas * fixed memory leaks in the compiler introduced in r21862 by marking and 2012-07-23 13:49:29 +00:00
parser.pas compiler: remove unused variable 2011-09-20 13:44:53 +00:00
pass_1.pas
pass_2.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pbase.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pdecl.pas pdecl.pas, readconstant: If we are parsing a constant declaration in a generic and we encounter an intrinsic then this intrinsic is left as is (thus the node p returned by comp_expr will be a inlinen instead of an expected ordconstn, stringconstn, etc.). Nevertheless we need to create a symbol for the constant (which isn't done otherwise). In the case of SizeOf a constant "0" will be created. This fixes Mantis #21593. 2012-06-06 15:00:28 +00:00
pdecobj.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
pdecsub.pas * give an error when trying to give a parameter of a non-simple type a 2012-08-06 20:13:20 +00:00
pdecvar.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
pexports.pas * handle exports with a name consisting of a single character correctly 2012-07-22 14:23:09 +00:00
pexpr.pas * Using OleVariant type should trigger inclusion of Variants unit into uses clause the same way as using Variant type does. Mantis #22504. 2012-07-26 05:03:56 +00:00
pgenutil.pas * always store generics token streams in little endian, so we don't have to 2012-07-15 16:09:14 +00:00
pinline.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pmodules.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
pp.lpi * version update 2012-05-05 18:33:15 +00:00
pp.pas * minimum compiler version to build the compiler is 2.6.0 2012-05-28 13:30:51 +00:00
pparautl.pas Do not call ret_in_param of the current parameter manager when parsing a generic method/function. This fixes Mantis #21921. 2012-06-14 12:11:11 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * update of project file 2012-03-25 14:23:57 +00:00
ppcavr.lpi
ppcmips.lpi * lazarus project file updates 2012-04-21 18:18:23 +00:00
ppcmipsel.lpi * use separate build directory for mipsel 2012-04-29 21:30:46 +00:00
ppcppc64.lpi + Lazarus project file for PowerPC64 2012-08-22 18:00:11 +00:00
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * always store generics token streams in little endian, so we don't have to 2012-07-15 16:09:14 +00:00
ppx86_64.lpi * version update 2012-06-03 18:55:44 +00:00
procinfo.pas + implement auto inlining (-Ooautoinline) 2012-05-19 13:30:02 +00:00
pstatmnt.pas Do not call ret_in_param of the current parameter manager when parsing a generic method/function. This fixes Mantis #21921. 2012-06-14 12:11:11 +00:00
psub.pas * support referencing "result" in nostackframe pure assembler routines if 2012-08-21 19:51:40 +00:00
psystem.pas * Fixed handling of OleVariant type (was messed up with Variant), now comparisons with colevarianttype work correctly, resolves #22504 (r21970 was correct but not enough). 2012-07-27 08:32:36 +00:00
ptconst.pas * synchronised with trunk up to r21067 2012-04-26 21:24:20 +00:00
ptype.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas Do not call ret_in_param of the current parameter manager when parsing a generic method/function. This fixes Mantis #21921. 2012-06-14 12:11:11 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas + fcl-res support for xcoff/aix 2012-04-11 18:06:33 +00:00
rgbase.pas
rgobj.pas + live_start and live_end_properties 2012-08-17 19:35:51 +00:00
scandir.pas * by default disable the warning about interfaces raising a particular 2012-05-19 10:19:49 +00:00
scanner.pas * always store generics token streams in little endian, so we don't have to 2012-07-15 16:09:14 +00:00
script.pas * GNU ld only supports double quotes in its response file -> requote there 2012-05-03 12:41:16 +00:00
switches.pas
symbase.pas
symconst.pas * synchronised with trunk up to r21067 2012-04-26 21:24:20 +00:00
symcreat.pas * support storing the scanner state when the current token is _ID 2012-04-25 22:29:25 +00:00
symdef.pas * avr uses a reduced buffer and file name length in textrecs and filerecs 2012-08-20 20:11:13 +00:00
symnot.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
symsym.pas * give (w)string tconstsyms a def, so all constsyms always have a def 2012-08-06 20:13:15 +00:00
symtable.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
symtype.pas + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
symutil.pas
systems.inc Merge of rev21557 by Foxsen 2012-06-13 22:25:38 +00:00
systems.pas * TObjData.symbolref: don't lose the weak binding of asm symbol. This fixes tests/tweaklib*.pp at least for Linux x86 targets with internal assembler. 2012-08-02 12:15:55 +00:00
tgobj.pas
tokens.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
verbose.pas + be able to turn off warning -> error conversion on the command line (with -) 2012-07-01 18:47:45 +00:00
version.pas * Restore 'mips' name as cpumipseb source_cpu_string 2012-06-20 23:51:36 +00:00
widestr.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
wpo.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
wpobase.pas
wpoinfo.pas

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 haiku
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