fpc/compiler
2011-09-15 15:35:08 +00:00
..
alpha - removed no more used constants 2011-08-13 20:54:01 +00:00
arm * also use blx instead of bl for direct calls on ARMv5+, since the target 2011-09-05 20:33:15 +00:00
avr * move ReplaceForbiddenChars to cpubase of avr so it can be used in dbgstabs as well 2011-09-04 19:36:43 +00:00
generic * Remove triple sources 2011-07-08 15:37:23 +00:00
html
i386 * fixed change information for a lot of sse instructions 2011-08-20 12:28:49 +00:00
ia64
m68k * fix full cycle after adding new boolean types 2011-06-27 20:11:08 +00:00
mips - removed no more used constants 2011-08-13 20:54:01 +00:00
msg + Fix commit 19061, by restoring cs_link_smart code and disabling 2011-09-14 13:38:15 +00:00
powerpc * reverted r18262 and fixed tcgint-related range check errors correctly at 2011-08-19 09:45:02 +00:00
powerpc64 * Avoid pointer to signed integer warning 2011-07-01 11:55:05 +00:00
ppcgen * forgot again part of a commit, this belongs to r18962 2011-09-03 20:42:01 +00:00
sparc * reverts r18960, should solve sparc trouble 2011-09-07 18:33:22 +00:00
systems * Changed attributes of .pdata section so it is smart-linkable on x86_64. 2011-09-15 15:22:03 +00:00
utils + Add property options display 2011-09-07 23:20:47 +00:00
vis - removed no more used constants 2011-08-13 20:54:01 +00:00
x86 x86 external Intel assembler: 2011-09-15 15:05:14 +00:00
x86_64 + Support classes for creating unwind bytecode for Win64. 2011-09-15 15:35:08 +00:00
aasmbase.pas + avr assemblers do not convert automatically cond. branches with too large jump distances into an unconditional branch and a reverse condition branch, so fpc does this now 2011-08-24 22:29:50 +00:00
aasmdata.pas * Consider cs_create_smart instead of cs_link_smart for 2011-09-14 12:14:52 +00:00
aasmsym.pas
aasmtai.pas + Support classes for creating unwind bytecode for Win64. 2011-09-15 15:35:08 +00:00
aggas.pas + Support classes for creating unwind bytecode for Win64. 2011-09-15 15:35:08 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
asmutils.pas
assemble.pas + Support classes for creating unwind bytecode for Win64. 2011-09-15 15:35:08 +00:00
browcol.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.pas * avoid range check error 2011-08-20 12:25:58 +00:00
cfidwarf.pas * fix error in cfidwarf rev 16062 for non-windows systems 2010-09-30 07:41:19 +00:00
cfileutl.pas * fix potential range check error in cfileutl, should resolve #19405 2011-06-04 22:14:55 +00:00
cg64f32.pas
cgbase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cgobj.pas * made a_call_ref of PowerPC generic, we need to allocate a register after all on risc platforms 2011-09-03 20:37:53 +00:00
cgutils.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cmsgs.pas Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
comphook.pas * make code and data size in status independent of target alu size 2011-09-07 16:04:38 +00:00
compiler.pas * catch EOSError, EIOError and IOutOfMemory exceptions inside the compiler 2011-08-07 09:18:07 +00:00
compinnr.inc * constant evaluation of ror/rol if they are internally handled, resolves #6300 2011-06-23 20:54:08 +00:00
comprsrc.pas + when compiling for Darwin/ARM, pass the subarchitecture to the linker. 2011-08-02 20:41:39 +00:00
constexp.pas * Use extended for bestreal type if GENERIC_CPU is defined 2011-07-08 15:36:29 +00:00
COPYING.txt
cp437.pas
cp850.pas
cp866.pas
cp1251.pas
cp8859_1.pas
cp8859_5.pas
crefs.pas
cresstr.pas
cstreams.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
cutils.pas
cwindirs.pp + added cwindirs for the time being to the compiler dir till a release with windirs in the rtl is released 2011-03-19 22:48:56 +00:00
dbgbase.pas compiler: implement delphi like namespaces 2011-08-27 03:52:07 +00:00
dbgdwarf.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
dbgstabs.pas * move ReplaceForbiddenChars to cpubase of avr so it can be used in dbgstabs as well 2011-09-04 19:36:43 +00:00
defcmp.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
defutil.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
export.pas
expunix.pas
finput.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
fmodule.pas compiler: pass both modulename and filename to tmodule.create. extract modulename from filename if modulename is not passed (probably fix an error with asm/obj filename appeared after the namespace branch merge). 2011-09-01 01:50:53 +00:00
fpccrc.pas
fpcdefs.inc Use FPC_HAS_SYSTEMS_INTERRUPT_TABLE conditional 2011-06-29 15:03:55 +00:00
fppu.pas compiler: pass both modulename and filename to tmodule.create. extract modulename from filename if modulename is not passed (probably fix an error with asm/obj filename appeared after the namespace branch merge). 2011-09-01 01:50:53 +00:00
gendef.pas
globals.pas Fix messages to tokenbuufer writing to zvoid problems with PPU 2011-09-03 17:38:53 +00:00
globtype.pas o slightly modified patch by John Clymer: 2011-08-25 21:46:26 +00:00
htypechk.pas compiler: allow "with" to search members in nested types properly 2011-09-06 10:23:57 +00:00
impdef.pas
import.pas
link.pas Add removal of braces for parameters in linker script 2011-07-01 14:28:18 +00:00
macho.pas * fixed comments for some comments, they were offset by one line (patch by 2010-12-24 15:58:41 +00:00
machoutils.pas
Makefile + exeinstall: New phony target to install only current cpu taret compiler. 2011-09-10 08:54:50 +00:00
Makefile.fpc + exeinstall: New phony target to install only current cpu taret compiler. 2011-09-10 08:54:50 +00:00
MPWMake
msgidx.inc * msg files regeneration after commit 19057 2011-09-14 13:38:46 +00:00
msgtxt.inc * msg files regeneration after commit 19057 2011-09-14 13:38:46 +00:00
nadd.pas compiler: remove/hide few unused variables 2011-08-30 01:32:23 +00:00
nbas.pas * fixed getcopy order for ttempcreatenode in case it has tempinitcode 2011-07-18 00:38:47 +00:00
ncal.pas * make sure that anonymous inherited calls only call through to the 2011-08-10 17:26:19 +00:00
ncgadd.pas * fixed generic code for subtracting one set from another if both are 2011-08-20 20:36:13 +00:00
ncgbas.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
ncgcal.pas Rebase to revision 17236 2011-04-03 17:24:35 +00:00
ncgcnv.pas * fix building on powerpc/powerpc64/mips/mipsel 2011-04-20 09:02:29 +00:00
ncgcon.pas * Float constants must be pooled using their the actual type, not the mapped type of assembler instruction. Otherwise e.g. extended may be mixed up with cextended, because both are mapped to ait_real_80bit. 2011-06-22 02:57:07 +00:00
ncgflw.pas * set line info markers properly, resolves #17803 2011-05-16 15:15:35 +00:00
ncginl.pas * constant evaluation of ror/rol if they are internally handled, resolves #6300 2011-06-23 20:54:08 +00:00
ncgld.pas * handle aligned assignments with size < sizeof(aint) properly, resolves #19355 2011-05-15 13:47:26 +00:00
ncgmat.pas + implementation of shifting operations for avr 2011-03-09 19:48:01 +00:00
ncgmem.pas * tcgvecnode, simplified range checking for strings. Removed FPC_*STR_CHECKZERO helpers, and changed FPC_*STR_CHECKRANGE so they accept the original left node. Now strings are checked the same way as dynamic arrays, and the compiler part is considerably simpler. 2011-03-13 15:52:02 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
ncgset.pas
ncgutil.pas * write variable locations of 64 bit integer values on 32 bit targets correctly 2011-09-03 19:43:50 +00:00
ncnv.pas * when removing unnecessary 64 bit widenings, modify both the resultdef 2011-08-11 16:05:11 +00:00
ncon.pas * some aint -> tcgint changes to avoid range check errors on systems with sizeof(aint)<4 2011-09-04 14:26:27 +00:00
nflw.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
ninl.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nld.pas * give a more understandable error message if a procedure "result" is tried to be a 2011-08-18 21:10:05 +00:00
nmat.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nmem.pas * when a constant Objective-C class reference is used for anything but 2011-08-06 19:49:59 +00:00
nobj.pas * When the interface method mapping is present, being unable to find the implementing procedure using the mapped name is a error condition. No attempt to find implementing procedure using symbol name should be made in this case. Resolves #19591. 2011-08-10 21:33:39 +00:00
nobjc.pas
node.pas compiler: add unary plus node, search for unary plus operator if a type cannot be handled by compiler, increase ppu version because of node types change 2010-12-26 12:19:28 +00:00
nopt.pas
nset.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nstate.pas
nutils.pas + might_have_sideeffects, make use of it when optimizing x*x into sqr(x) 2011-08-19 09:26:40 +00:00
objcdef.pas Commit of a completely restructured helper implementation. Instead of changing objectdefs with odt_classhelper to odt_class, they'll have the odt_helper type assigned to and this will be kept. This also implies that the parent of a helper is its true parent while the extended type is set to a field in tobjectdef (extendeddef). 2011-02-20 11:41:55 +00:00
objcgutl.pas
objcutil.pas * renamed objcdef.addencodedtype to objcaddencodedtype for consistency 2010-12-19 19:37:47 +00:00
ogbase.pas * Changed attributes of .pdata section so it is smart-linkable on x86_64. 2011-09-15 15:22:03 +00:00
ogcoff.pas * Changed attributes of .pdata section so it is smart-linkable on x86_64. 2011-09-15 15:22:03 +00:00
ogelf.pas * Reverted r17556 and replaced it with more generic handling of 'rela'-styled relocations. Resolves #19416. 2011-05-27 18:19:08 +00:00
oglx.pas
ogmacho.pas + user section type 2011-03-20 15:42:28 +00:00
ogmap.pas
ognlm.pas Avoid line > 255 chars and range check error on THandle type 2011-06-27 20:58:02 +00:00
optbase.pas
optcse.pas * Avoid pointer typecast warning 2011-06-29 09:54:46 +00:00
optdead.pas
optdfa.pas
options.pas + Fix commit 19061, by restoring cs_link_smart code and disabling 2011-09-14 13:38:15 +00:00
optloop.pas
opttail.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
optutils.pas
optvirt.pas
owar.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
owbase.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
parabase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
paramgr.pas * improvement to r16050 for non-fixed stack targets: they never have to use 2011-03-18 18:32:02 +00:00
parser.pas * cleaned up FreeLocalVerbosity usage 2011-09-06 21:02:20 +00:00
pass_1.pas * when simplifying ordinal expressions during inlining, keep the resultdef 2010-10-07 15:08:52 +00:00
pass_2.pas compiler: add unary plus node, search for unary plus operator if a type cannot be handled by compiler, increase ppu version because of node types change 2010-12-26 12:19:28 +00:00
pbase.pas reintegrate paul/namespaces branch into trunk: 2011-08-30 01:10:24 +00:00
pdecl.pas * fixed switched around lists for read-only/read-write typed consts 2011-08-02 20:32:48 +00:00
pdecobj.pas * store the current field alignment of tobjectdefs that use C_alignment, 2011-08-06 13:11:23 +00:00
pdecsub.pas compiler: remove/hide few unused variables 2011-08-30 01:32:23 +00:00
pdecvar.pas compiler: clear vd_class option if it was added by _STATIC token (issue #0020119) 2011-09-07 02:22:03 +00:00
pexports.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pexpr.pas compiler: implement Delphi like dynamic array constructors. E.g.: SomeArrayVar := TSomeDynArrayType.Create(value1, value2). (issue #0015385) 2011-09-11 04:41:46 +00:00
pinline.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
pmodules.pas + Mantis #19651: Generate table of typed string constants which are initialized with resourcestrings, so they are updated when SetResourceStrings or SetUnitResourceStrings is called. 2011-09-04 16:01:26 +00:00
pp.lpi * version update 2011-08-17 10:57:32 +00:00
pp.pas
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * new version 2011-08-26 07:21:40 +00:00
ppcavr.lpi * version update 2011-09-04 18:53:12 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas Fix an error in reading real variable for change_endian 2011-09-07 23:19:48 +00:00
ppx86_64.lpi * new lpi version 2011-08-21 19:56:40 +00:00
procinfo.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
pstatmnt.pas compiler: use try_consume_unitsym for except variable parse. this is needed to reduce maintenance cost for later unit identifier search changes 2011-08-24 10:54:17 +00:00
psub.pas scanner unit: 2011-09-07 13:13:15 +00:00
psystem.pas + Support classes for creating unwind bytecode for Win64. 2011-09-15 15:35:08 +00:00
ptconst.pas * Don't include ShortString constants into resourcestring reference table, because current design allows RTL to handle only a single string type. 2011-09-09 17:58:32 +00:00
ptype.pas scanner unit: 2011-09-07 13:13:15 +00:00
raatt.pas o patch by Jeppe Johansen to fix mantis #17472: 2010-12-24 15:54:39 +00:00
rabase.pas
rasm.pas
rautils.pas + support for assembler instructions with four operands 2011-08-14 16:46:35 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * write variable locations of 64 bit integer values on 32 bit targets correctly 2011-09-03 19:43:50 +00:00
scandir.pas * exclude cs_create_smart if using external assembler and dwarf 2011-09-14 12:16:53 +00:00
scanner.pas Handle FileIndex/Line/Column for change_nedian in token buffer for generics 2011-09-07 16:27:33 +00:00
script.pas
switches.pas * Fix double WARN infinite loop 2011-06-29 09:52:03 +00:00
symbase.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
symconst.pas compiler: implement delphi like namespaces 2011-08-27 03:52:07 +00:00
symdef.pas Remember change_endian from ppufile for generictokenbuf reading 2011-09-07 13:04:55 +00:00
symnot.pas
symsym.pas compiler: implement delphi like namespaces 2011-08-27 03:52:07 +00:00
symtable.pas compiler: fix private and protected members visibility check for nested records (issue #0018768) 2011-09-07 01:51:13 +00:00
symtype.pas + ttypesym.prettyname 2011-08-17 11:10:00 +00:00
symutil.pas
systems.inc Added forgotten include file 2011-06-20 14:57:34 +00:00
systems.pas + add avr-embedded to systems_embedded 2011-07-17 20:44:43 +00:00
tgobj.pas * avr stackframe generation improved 2011-02-27 21:11:40 +00:00
tokens.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
verbose.pas + added forgotten unaligned call 2011-09-06 21:02:59 +00:00
version.pas * Trunk version to 2.7.1 2011-08-03 13:59:33 +00:00
widestr.pas
wpo.pas
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