fpc/compiler
2012-07-22 21:07:33 +00:00
..
alpha Remove tai_ent, which is moved to aasmtai unit 2012-07-04 16:35:46 +00:00
arm * generate less register wasting code for 64 bit comparions 2012-07-22 21:07:33 +00:00
avr + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
generic
html
i386 + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
ia64 + ossinttype/osuinttype defs that correspond to OS_SINT/OS_INT for use in 2012-05-12 16:03:15 +00:00
jvm * moved setting the call result to a separate method, so it can still be 2012-07-12 20:56:25 +00:00
m68k + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
mips + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
msg + Reject object types without VMT as arguments of typeof(). Without this check, an undefined reference to VMT is generated which fails at the linking stage. 2012-07-17 05:46:55 +00:00
powerpc + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
powerpc64 + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
ppcgen + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +00:00
sparc + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
systems * Fixed error introduced in r21732. For libraries, startup is always dllprt0.o, regardless of profiling/linking to libc. Mantis #22397. 2012-07-09 12:18:34 +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 * the code generator bugs referred to in r21921 weren't completely fixed yet 2012-07-17 14:36:37 +00:00
x86_64 * the safecall -> cdecl mapping is also activated for x86_64 2012-07-22 16:59:04 +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 + New tai_ent and tai_ent_end classes 2012-07-04 16:32:20 +00:00
aggas.pas Support ait_ent and ait_ent_end 2012-07-04 16:36:33 +00:00
agjasmin.pas * part of r21120, forgot to commit 2012-04-29 22:27:05 +00:00
aopt.pas * call inherited Destroy in TAsmOptimizer to avoid memory leak 2012-06-25 20:19:19 +00:00
aoptbase.pas Support top_shifterop and top_regset for arm in RegInOp 2012-07-06 21:33:22 +00:00
aoptcs.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptda.pas
aoptobj.pas * changed tregset into tcpuregisterset so it's faster and uses less memory 2012-06-26 19:01:11 +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 Add and replacement, for MIPS 2012-07-04 16:33:17 +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 compiler: 2011-11-02 09:20:59 +00:00
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 * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
COPYING.txt
cp437.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp850.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp866.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp1251.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp1252.pp * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_1.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_5.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cpid.pas merge r14347 from cpstrnew branch by florian: 2011-09-17 12:00:06 +00:00
crefs.pas
cresstr.pas * do not create a global symbol in the middle of ansi/unicodestring 2012-05-19 10:19:35 +00:00
cstreams.pas * typo fixed 2011-12-31 16:25:19 +00:00
cutils.pas Reworked ispowerof2 in cutils.pas 2012-07-04 13:25:25 +00:00
cwindirs.pp
dbgbase.pas * Avoid having current_debuginfo pointing to freed memory 2012-03-21 10:17:43 +00:00
dbgdwarf.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
dbgstabs.pas * Use mips_extra_offset function to give offsets expected by GDB for MIPS cpu 2012-06-12 22:57:19 +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 * don't allow ordinal->ptr-based-objectdef conversions on managed platforms, 2012-07-10 09:24:13 +00:00
defutil.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
export.pas
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 * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +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 + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
hlcg2ll.pas * moved setting the call result to a separate method, so it can still be 2012-07-12 20:56:25 +00:00
hlcgobj.pas * moved setting the call result to a separate method, so it can still be 2012-07-12 20:56:25 +00:00
htypechk.pas * only try to call procvars while choosing overloads in case they don't 2012-06-28 14:41:31 +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
link.pas * Renamed a method for consistency (let script building methods start with ScriptAdd). 2012-07-07 22:49:05 +00:00
macho.pas
machoutils.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
Makefile Makefile regenerazted after change to Makefile.fpc: 2012-06-13 08:05:36 +00:00
Makefile.fpc + Add CYCLELEVEL variable, whose value can be from 1 to 3 2012-06-13 08:04:44 +00:00
MPWMake
msgidx.inc + Reject object types without VMT as arguments of typeof(). Without this check, an undefined reference to VMT is generated which fails at the linking stage. 2012-07-17 05:46:55 +00:00
msgtxt.inc + Reject object types without VMT as arguments of typeof(). Without this check, an undefined reference to VMT is generated which fails at the linking stage. 2012-07-17 05:46:55 +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 + write temptype when printing tempdelete nodes 2012-07-01 18:46:13 +00:00
ncal.pas * minor reformatting, and removed superfluous assigned test (the value is 2012-06-06 18:51:14 +00:00
ncgadd.pas * moved subsetref/reg and bit_set/test support from cgobj to hlcgobj for 2012-05-13 12:33:10 +00:00
ncgbas.pas
ncgcal.pas * let thlcg.a_call_name() return the tcgpara representing the function 2012-07-11 08:25:58 +00:00
ncgcnv.pas * moved subsetref/reg and bit_set/test support from cgobj to hlcgobj for 2012-05-13 12:33:10 +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 + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +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 * copy the implicit pointer rather than the contents of var/out/constref 2011-11-18 21:09:38 +00:00
ncgnstmm.pas * fixed loading the nested framepointer when calling another nested 2011-09-20 22:22:26 +00:00
ncgobjc.pas compiler: 2011-09-28 01:18:43 +00:00
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 * moved subsetref/reg and bit_set/test support from cgobj to hlcgobj for 2012-05-13 12:33:10 +00:00
ncgutil.pas * converted tcg.g_copyvaluepara_openarray() to thlcg 2012-07-11 15:23:08 +00:00
ncnv.pas * moved transformation of char-to-chararray type conversion into helpers 2012-07-10 13:05:45 +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 + Reject object types without VMT as arguments of typeof(). Without this check, an undefined reference to VMT is generated which fails at the linking stage. 2012-07-17 05:46:55 +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 * part of r20140, forgot to commit 2012-01-21 21:16:47 +00:00
nopt.pas * fixed genmultistringadd() optimization for jvm and enabled it 2012-04-16 20:51:51 +00:00
nset.pas
nstate.pas
nutils.pas * converted code to trash variables (-gt) to operate at the node tree level, 2012-05-26 11:32:39 +00:00
objcdef.pas
objcgutl.pas * objcprotocol symbols have to be weak in the non-fragile abi to prevent 2011-12-17 12:43:42 +00:00
objcutil.pas * don't generate a classClass call for objc loadvmtaddrnodes generated 2012-03-29 20:54:47 +00:00
ogbase.pas * Entirely moved relocation fixup functionality from TObjSection to TExeOutput. 2012-07-22 07:21:11 +00:00
ogcoff.pas * Entirely moved relocation fixup functionality from TObjSection to TExeOutput. 2012-07-22 07:21:11 +00:00
ogelf.pas * Merged TElfObjSection.secshidx and TCoffObjSection.secidx into TObjSection.index. 2012-07-10 13:34:55 +00:00
oglx.pas
ogmacho.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogmap.pas
ognlm.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
optbase.pas
optcse.pas
optdead.pas * replaced most (if not all) remaining fields/parameters in the compiler 2012-04-29 17:36:23 +00:00
optdfa.pas * handle for-loops correctly if the limits contain the counter variable 2011-12-30 10:54:08 +00:00
options.pas + Added FPC_LOCALS_ARE_STACK_REG_RELATIVE system macro for MIPS cpu 2012-07-12 08:54:06 +00:00
optloop.pas + implement auto inlining (-Ooautoinline) 2012-05-19 13:30:02 +00:00
opttail.pas * factored load node flags out of node flags to gain space 2011-10-30 15:14:21 +00:00
optutils.pas
optvirt.pas
owar.pas + Added a flag to tarobjectreader constructor that allows it to work as regular tobjectreader if archive signature is missing. 2012-07-11 17:39:36 +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 * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
paramgr.pas + also specify the parameter def when allocating a parameter via 2012-06-24 15:02:12 +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 * don't turn constref shortstring parameters into openstrings (they can't 2012-06-24 15:02:03 +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 * always interpret a function name on the RHS as a recursive function 2012-07-08 09:52:30 +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 * version update 2011-09-04 18:53:12 +00:00
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
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 - reverted r1733, which caused all local procedures to become global in case 2012-07-16 15:22:14 +00:00
psystem.pas * add get_frame as an internal symbol for the jvm target because that target 2012-07-12 13:25:02 +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 + New virtual method TATTReader.HandleDollar, useful for MIPS reader 2012-02-02 23:45:22 +00:00
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
rescmn.pas + fcl-res support for xcoff/aix 2012-04-11 18:06:33 +00:00
rgbase.pas
rgobj.pas Be more specific in spilling debug messages 2012-07-12 01:11:29 +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 * the default string type for the JVM target is no longer automatically 2011-08-20 08:35:47 +00:00
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 + optimization that (re)orders instance fields of Delphi-style classes in 2012-07-22 16:47:19 +00:00
symnot.pas
symsym.pas * write parameter refs to ppu (only 1=used; 0=unsed), fixes parameter usage checking of inlined procedures loaded from units 2012-06-03 18:56:44 +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 Merge of rev21557 by Foxsen 2012-06-13 22:25:38 +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
wpobase.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
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