fpc/compiler
2012-02-04 22:53:52 +00:00
..
alpha Fix compilation of alpha/cpuinfo unit 2012-01-20 14:18:53 +00:00
arm + patch by Jeppe Johansen to support the SC32442B 2012-01-14 21:39:32 +00:00
avr * avoid warnings in the avr code generator 2012-01-08 20:10:59 +00:00
generic * Remove triple sources 2011-07-08 15:37:23 +00:00
html
i386 * handle all operand combinations of xadd, resolves #21146 2012-01-25 21:26:59 +00:00
ia64 Fix ia64 compilation problems 2012-01-20 14:17:56 +00:00
m68k * Avoid warnings and add create_varargs_paraloc_info method 2011-11-03 10:04:54 +00:00
mips * fix some mips compiler issues, system unit compilation is getting forward 2012-02-04 22:53:52 +00:00
msg * write error code if an object file cannot be created 2012-01-15 10:59:10 +00:00
powerpc + support for OP_NOT and OP_NEG in a_op64_reg_reg() (required since 2011-12-30 12:11:09 +00:00
powerpc64 * fix fullcycle after -Sew for the compiler was introduced 2011-12-04 21:17:40 +00:00
ppcgen Override abstract method to abvoid warning at compilation time and suppress warning about macos_direct_globals constant 2011-11-03 10:10:11 +00:00
sparc Override abstract method to abvoid warning at compilation time 2011-11-03 10:08:37 +00:00
systems * started to fix the mips(el) linux rtl 2012-02-04 21:25:53 +00:00
utils This fixes Mantis #20851 . 2012-02-04 16:03:58 +00:00
vis - removed no more used constants 2011-08-13 20:54:01 +00:00
x86 * handle all operand combinations of xadd, resolves #21146 2012-01-25 21:26:59 +00:00
x86_64 * handle all operand combinations of xadd, resolves #21146 2012-01-25 21:26:59 +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 compiler: 2011-09-28 01:18:43 +00:00
aasmsym.pas
aasmtai.pas * toper.val : aint => tcgint, needed at least for avr 2012-01-08 22:22:09 +00:00
aggas.pas + Platform-specific exception support for x86_64-win64. Enable by cycling with OPT=-dTEST_WIN64_SEH. 2012-01-16 23:13:31 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * patch by alexvin to replace $ifopt by $push/$pop, resolves #20332 2011-09-25 21:19:50 +00:00
asmutils.pas compiler: move ansistring codepage number replacement code from the asm generator to one level up. output both 0 and CP_NONE ansistring constants as constants with codepage 0. codepage 0 means CP_ACP and it will be properly understood of RTL routines while codepage CP_NONE means no codepage. For delphi unicode mode output them in compiler codepage as before. 2011-10-11 07:22:49 +00:00
assemble.pas + Platform-specific exception support for x86_64-win64. Enable by cycling with OPT=-dTEST_WIN64_SEH. 2012-01-16 23:13:31 +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 * make compiler compilable with 2.4.4 rtl 2011-09-28 18:54:32 +00:00
cclasses.pas * Added a lower limit on tdynamicarray block size. Certain values less than dynamicblockbasesize+alignment, e.g. 8 on x86_64, cause grow() to enter an infinite loop. Such values come e.g. from cloning tdataconstnode, which abuses blocksize argument as data size. Mantis #20929. 2011-12-18 22:34:56 +00:00
cfidwarf.pas * fix error in cfidwarf rev 16062 for non-windows systems 2010-09-30 07:41:19 +00:00
cfileutl.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
cg64f32.pas * renamed a_param_* to a_load_*_cgpara 2010-05-22 09:07:21 +00:00
cgbase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cgobj.pas Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref. 2012-01-19 23:11:09 +00:00
cgutils.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cmsgs.pas compiler: 2011-11-02 09:20:59 +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 * 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 compiler: 2011-10-19 02:45:52 +00:00
cstreams.pas * typo fixed 2011-12-31 16:25:19 +00:00
cutils.pas * VER2_0 overleft removed 2011-12-29 17:40:12 +00:00
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 * Use DW_TAG_class_type for classes instead of DW_TAG_structure_type 2011-10-13 16:21:49 +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 compiler: 2011-10-19 02:45:52 +00:00
defutil.pas * also report currency as automatable on non-x87 platforms 2011-12-30 12:30:12 +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: 2011-10-19 02:45:52 +00:00
fpccrc.pas
fpcdefs.inc Commit some MIPS changes 2012-02-02 23:43:52 +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 * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
globals.pas Fix ia64 compilation problems 2012-01-20 14:17:56 +00:00
globtype.pas compiler: output ansistring constants in explicit codepage if codepage is explicitly defined using either $codepage directive or compiler switch or for SystemCodepage modeswitch 2011-10-11 08:58:56 +00:00
htypechk.pas * mark nodes that have been created by transforming a read-accessor of 2012-01-21 19:09:30 +00:00
impdef.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
import.pas
link.pas + TExternalLinker.CatFileContent method and tf_no_backquote_support tsystemflags enum value 2011-11-18 21:32:25 +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 o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
Makefile * some Makefiles regenerated to support mips-linux 2012-02-04 09:50:03 +00:00
Makefile.fpc + regdatia64 phony target to generate all ia64 register include files 2012-01-31 15:49:30 +00:00
MPWMake
msgidx.inc * write error code if an object file cannot be created 2012-01-15 10:59:10 +00:00
msgtxt.inc * write error code if an object file cannot be created 2012-01-15 10:59:10 +00:00
nadd.pas * when comparing two boolean values, convert both to pasbool8 so 2011-12-03 22:31:21 +00:00
nbas.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
ncal.pas * make self-pointer passed by reference not regable. Was not necessary 2012-01-29 11:30:12 +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 Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref. 2012-01-19 23:11:09 +00:00
ncgcnv.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
ncgcon.pas * tcgguidconstnode: create a new object section before emitting data, otherwise data ends up in arbitrary section, causing e.g. IE 200602289 if it happens to be .bss. 2011-11-16 02:21:10 +00:00
ncgflw.pas * Safecall handling: forgot to free cgpara before doing the call, fixed. 2012-01-05 19:12:56 +00:00
ncginl.pas merge r13489 from cpstrnew branch by florian: 2011-09-17 11:21:00 +00:00
ncgld.pas * Changed code generation for assignments of managed types, it now generates a single call to helper procedure (significantly reducing code size) and is handled entirely in firstpass. 2012-01-19 22:28:29 +00:00
ncgmat.pas + implementation of shifting operations for avr 2011-03-09 19:48:01 +00:00
ncgmem.pas compiler: 2011-09-28 01:18:43 +00:00
ncgobjc.pas compiler: 2011-09-28 01:18:43 +00:00
ncgopt.pas
ncgrtti.pas * don't try to write rtti for fields in Pascal records/classes/objects/... 2011-12-17 11:43:13 +00:00
ncgset.pas
ncgutil.pas Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref. 2012-01-19 23:11:09 +00:00
ncnv.pas compiler: 2011-11-03 00:39:22 +00:00
ncon.pas * keep track of the type of symbolic floating point constants rather 2012-01-28 18:38:06 +00:00
nflw.pas * Set pi_uses_exceptions flag when creating/firstpassing ttryexceptnode or ttryfinallynode, not when parsing try statements. It ensures that procedures with exception handling nodes created by compiler (constructors in the first place, but also for..in loops with TObject iterators, etc.) are handled the same way as ones containing exception nodes from user code. 2011-11-22 11:59:44 +00:00
ninl.pas compiler: 2011-10-20 09:25:51 +00:00
nld.pas * Changed code generation for assignments of managed types, it now generates a single call to helper procedure (significantly reducing code size) and is handled entirely in firstpass. 2012-01-19 22:28:29 +00:00
nmat.pas * avoid range check errors when inlining not-nodes (mantis #21029) 2012-01-10 22:23:25 +00:00
nmem.pas * truncate indices into arrays from 64 to 32 bit on 32 bit 2012-01-20 22:43:55 +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 * do not crash but give a fatal error when using Objective-Pascal code 2010-04-24 12:49:16 +00:00
node.pas * part of r20140, forgot to commit 2012-01-21 21:16:47 +00:00
nopt.pas compiler: 2011-10-20 09:25:51 +00:00
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 Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref. 2012-01-19 23:11:09 +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 * objcprotocol symbols have to be weak in the non-fragile abi to prevent 2011-12-17 12:43:42 +00:00
objcutil.pas * renamed objcdef.addencodedtype to objcaddencodedtype for consistency 2010-12-19 19:37:47 +00:00
ogbase.pas * don't pass property as var-parameter to val() 2012-01-21 16:54:57 +00:00
ogcoff.pas * Don't reject IMAGE_REL_ARM_SECREL relocations, Mantis #20467 2011-10-12 06:01:14 +00:00
ogelf.pas * Enable internal elf writer for freebsd x86_64 target 2011-11-08 14:05:57 +00:00
oglx.pas
ogmacho.pas + user section type 2011-03-20 15:42:28 +00:00
ogmap.pas
ognlm.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
optbase.pas * handle short boolean evaluation correctly when doing node cse 2010-01-17 10:08:37 +00:00
optcse.pas * Avoid pointer typecast warning 2011-06-29 09:54:46 +00:00
optdead.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +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 Commit some MIPS changes 2012-02-02 23:43:52 +00:00
optloop.pas * handle unrolling of for ... downto ... correctly, resolves #15668 2010-02-10 21:08:54 +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 - removed tstoreddef.reset() and overrides, and the associated 2010-06-30 19:00:40 +00:00
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 * write error code if an object file cannot be created 2012-01-15 10:59:10 +00:00
parabase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
paramgr.pas * An open array/array of const parameter passed by value and requiring a local copy on heap (currently all targets except non-Darwin i386 ones) should not be placed into register and should force procedure to have an implicit finally block. 2011-12-06 19:44:24 +00:00
parser.pas compiler: remove unused variable 2011-09-20 13:44:53 +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 + tcgexitnode,tcgbreaknode,tcgcontinuenode: added possibility to generate specialized code for leaving unwind-protected regions. 2011-11-14 22:47:37 +00:00
pbase.pas reintegrate paul/namespaces branch into trunk: 2011-08-30 01:10:24 +00:00
pdecl.pas This fixes Mantis #20851 . 2012-02-04 16:03:58 +00:00
pdecobj.pas * pdecobj.pas, object_dec: 2012-01-28 18:09:40 +00:00
pdecsub.pas compiler: 2012-01-24 01:45:31 +00:00
pdecvar.pas - removed optimization that pops the current symtable off the symtablestack 2012-01-28 17:07:56 +00:00
pexports.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pexpr.pas This fixes Mantis #20851 . 2012-02-04 16:03:58 +00:00
pgenutil.pas * pgenutil.pas, generate_specialization: 2012-02-04 16:26:47 +00:00
pinline.pas * Generate direct order of indexes passed to fpc_dynarray_setlength at compile time, eliminates the need of reversing them at runtime (in DynArraySetLength). 2012-01-10 18:58:20 +00:00
pmodules.pas compiler: write INIT and RTTI info also for defs of nested records and classes + test (issue #0020909) 2012-01-24 06:57:04 +00:00
pp.lpi Rebase to revision 19078 (directly before the merge of cpstrnew) 2011-11-24 10:19:57 +00:00
pp.pas * Fix compilation by disabling warnings for unsupported MIN/MAXSTACKSIZE 2011-11-03 13:22:53 +00:00
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
ppcmips.lpi * fix some mips compiler issues, system unit compilation is getting forward 2012-02-04 22:53:52 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas This fixes Mantis #20851 . 2012-02-04 16:03:58 +00:00
ppx86_64.lpi * new lpi version 2011-08-21 19:56:40 +00:00
procinfo.pas + Platform-specific exception support for x86_64-win64. Enable by cycling with OPT=-dTEST_WIN64_SEH. 2012-01-16 23:13:31 +00:00
pstatmnt.pas * Set pi_uses_exceptions flag when creating/firstpassing ttryexceptnode or ttryfinallynode, not when parsing try statements. It ensures that procedures with exception handling nodes created by compiler (constructors in the first place, but also for..in loops with TObject iterators, etc.) are handled the same way as ones containing exception nodes from user code. 2011-11-22 11:59:44 +00:00
psub.pas * Move the setup and teardown of the specialization symtable stack into two extra 2012-02-04 12:37:43 +00:00
psystem.pas Commit some MIPS changes from MarkMLl 2012-02-02 23:46:24 +00:00
ptconst.pas compiler: correctly traverse record fields while generating record constant (bug #0020594) 2011-10-31 02:54:19 +00:00
ptype.pas * pdecobj.pas, object_dec: 2012-01-28 18:09:40 +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 * Define MAX_OPER_X to avoid warnings about array index past maximum value 2011-11-03 10:12:31 +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 compiler: 2011-11-03 00:39:22 +00:00
scanner.pas * make asciinr string long enough for binary char constants as pointed out by Matti Kronman, resolves #20821 2011-12-08 22:04:32 +00:00
script.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
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 This fixes Mantis #20851 . 2012-02-04 16:03:58 +00:00
symdef.pas * set the default range type of arrays to ptrsinttype rather 2012-01-18 21:13:21 +00:00
symnot.pas
symsym.pas * keep track of the type of symbolic floating point constants rather 2012-01-28 18:38:06 +00:00
symtable.pas * pdecobj.pas, object_dec: 2012-01-28 18:09:40 +00:00
symtype.pas compiler: add owner hierarchy prefix for mangled name of parameter def to prevent asm symbols collision (issue #0020940) 2012-01-24 08:27:51 +00:00
symutil.pas
systems.inc Added forgotten include file 2011-06-20 14:57:34 +00:00
systems.pas + TExternalLinker.CatFileContent method and tf_no_backquote_support tsystemflags enum value 2011-11-18 21:32:25 +00:00
tgobj.pas * avr stackframe generation improved 2011-02-27 21:11:40 +00:00
tokens.pas merge r17552 from cpstrnew branch by inoussa: 2011-09-17 13:52:09 +00:00
verbose.pas * Fix ChangeMessageVerbosity by adingd a recordpendingmessagestate call 2011-11-02 22:08:14 +00:00
version.pas * Trunk version to 2.7.1 2011-08-03 13:59:33 +00:00
widestr.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +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