fpc/compiler
Jonas Maebe cb1da8de85 * fixed getcopy order for ttempcreatenode in case it has tempinitcode
(this tempinitcode contains a reference to the tempcreatenode itself
     -> hookoncopy must be set before copying the tempinitnode)

git-svn-id: trunk@18016 -
2011-07-18 00:38:47 +00:00
..
alpha
arm * fix full cycle after adding new boolean types 2011-06-27 20:11:08 +00:00
avr + support to parse hi8/lo8(...) in inline assembler 2011-07-17 16:26:57 +00:00
generic * Remove triple sources 2011-07-08 15:37:23 +00:00
html
i386 * Rename ag386nsm.pas unit source to agx86nsm.pas 2011-07-04 09:13:55 +00:00
ia64
m68k * fix full cycle after adding new boolean types 2011-06-27 20:11:08 +00:00
mips * Make TAICPU class child of TAI_CPU_ABSTRACT_SYM instead of TAI_CPU_ABSTRACT 2011-06-30 13:19:48 +00:00
msg * put -Wpxxxx switch on the help screen 2011-07-17 20:42:56 +00:00
powerpc * unique internal errors 2011-07-10 20:54:48 +00:00
powerpc64 * Avoid pointer to signed integer warning 2011-07-01 11:55:05 +00:00
ppcgen * unique internal errors 2011-07-10 20:54:48 +00:00
sparc Use ptruint type in typecast to avoid warning 2011-06-29 15:05:30 +00:00
systems * hack to set stack top for atmega128 2011-07-17 20:46:05 +00:00
utils Fix constant pointer reading for 64 bit CPU 2011-07-08 16:28:24 +00:00
vis
x86 * Rename ag386nsm.pas unit source to agx86nsm.pas 2011-07-04 09:13:55 +00:00
x86_64 * Always create a section before emitting data to current_asmdata.asmlists[al_typedconsts]. Without it, such data ends up in sections created elsewhere, creating very non-obvious dependencies on other parts of compiler. 2011-06-24 02:05:56 +00:00
aasmbase.pas * merge user sections support branch 2011-04-10 18:08:59 +00:00
aasmdata.pas * Optimized pooling of floating point and large set constants using hash tables. 2011-06-19 21:41:41 +00:00
aasmsym.pas
aasmtai.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
aggas.pas + aggas.pas: Write section attributes when long section names are used for smart linking (enabled for win32 and win64). It is needed because GAS does not understand that '.text.something' is part of '.text' and assigns default attributes (writable data) to all such sections, which is not the desired behavior. 2011-07-13 23:45:28 +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 * Don't use hardcoded value for maxoutputlists 2011-06-13 07:11:56 +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 * fixed (harmless) range check errors 2011-06-02 20:07:06 +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 * 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 * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +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
compiler.pas o several strings changed into ansistrings, resolves #19318, no compilation speed degrations measurable 2011-05-15 14:53:31 +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 * 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
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: generate debug info for record methods: 2010-12-16 06:12:05 +00:00
dbgdwarf.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
dbgstabs.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +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 + Use DLL name in assembler labels used to import DLL functions/variables 2011-06-23 11:38:57 +00:00
fpccrc.pas
fpcdefs.inc Use FPC_HAS_SYSTEMS_INTERRUPT_TABLE conditional 2011-06-29 15:03:55 +00:00
fppu.pas + Use DLL name in assembler labels used to import DLL functions/variables 2011-06-23 11:38:57 +00:00
gendef.pas
globals.pas * Avoid warning about missing field for AVR 2011-07-01 11:59:31 +00:00
globtype.pas Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
htypechk.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +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 + Add global testppudump rule 2011-07-08 16:01:28 +00:00
Makefile.fpc + Add global testppudump rule 2011-07-08 16:01:28 +00:00
MPWMake
msgidx.inc * put -Wpxxxx switch on the help screen 2011-07-17 20:42:56 +00:00
msgtxt.inc * put -Wpxxxx switch on the help screen 2011-07-17 20:42:56 +00:00
nadd.pas * Reorganize code to avoid warnings about unreachable code 2011-06-29 09:59:06 +00:00
nbas.pas * fixed getcopy order for ttempcreatenode in case it has tempinitcode 2011-07-18 00:38:47 +00:00
ncal.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
ncgadd.pas * fixed non short boolean evaluation of <64 bit bool> and/or <64 bit bool> on non-64 bit cpus 2011-06-26 21:01:59 +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 * Use vo_has_section to test for user name section in insertbssdata 2011-07-01 14:24:56 +00:00
ncnv.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
ncon.pas * Improvements to Dispatch call handling: 2010-11-18 16:17:50 +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 Rebase to revision 17306 2011-04-13 10:04:14 +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 * renamed is_class_or_interface_or_dispinterface_or_objc() into 2010-12-30 15:19:54 +00:00
nobj.pas * when comparing overridden methods, ignore hidden parameters because overridden methods does not 2011-06-26 12:34:59 +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 compiler: handle dispinterfaces the same way as com interfaces because they are IDispatch descendants: increment/decrement they references in assignments and parameters passing by _AddRef, _Release 2011-01-13 03:38:45 +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 * put the RTTI for optional protocol methods in the correct section for 2010-06-21 15:07:29 +00:00
objcutil.pas * renamed objcdef.addencodedtype to objcaddencodedtype for consistency 2010-12-19 19:37:47 +00:00
ogbase.pas * ogcoff.pas: sort all objsections having '$' in the name, not just .idata$*. This is a documented PECOFF feature and it is required for tls callback stuff to link correctly regardless of the order of declarations in source files. 2011-07-10 12:24:35 +00:00
ogcoff.pas * ogcoff.pas: sort all objsections having '$' in the name, not just .idata$*. This is a documented PECOFF feature and it is required for tls callback stuff to link correctly regardless of the order of declarations in source files. 2011-07-10 12:24:35 +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 + V is avr help screen option 2011-07-17 20:44:10 +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 - 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 * 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 Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +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 compiler: change check for current in try_consume_unitsym - don't use current_unit in check because specialize code does not replace this variable (fixes bug #0015591) 2010-12-01 08:18:51 +00:00
pdecl.pas Rebase to revision 17236 2011-04-03 17:24:35 +00:00
pdecobj.pas compiler: allow class declarations inside records (1 part of issue #0019099) 2011-04-18 03:26:46 +00:00
pdecsub.pas Use FPC_HAS_SYSTEMS_INTERRUPT_TABLE conditional 2011-06-29 15:03:55 +00:00
pdecvar.pas * Use public/global name 'name' section 'section' without semicolon for Windows TLS support 2011-07-01 19:29:38 +00:00
pexports.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pexpr.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
pinline.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
pmodules.pas Use FPC_HAS_SYSTEMS_INTERRUPT_TABLE conditional 2011-06-29 15:03:55 +00:00
pp.lpi Rebase to revision 17096 2011-03-09 16:29:47 +00:00
pp.pas
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcavr.lpi Rebase to revision 17096 2011-03-09 16:29:47 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * More fixes for ppudump use 2011-07-08 15:38:14 +00:00
ppx86_64.lpi
procinfo.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
pstatmnt.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
psub.pas + Use DLL name in assembler labels used to import DLL functions/variables 2011-06-23 11:38:57 +00:00
psystem.pas * fixed make all 2011-06-26 20:54:39 +00:00
ptconst.pas * Use public/global name 'name' section 'section' without semicolon for Windows TLS support 2011-07-01 19:29:38 +00:00
ptype.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +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 Several adjustments because virtual methods in helpers are just normal methods and a VMT isn't generated for them either. 2011-03-20 10:41:45 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
scandir.pas * $WARN $PUSH/$POP support 2011-06-29 09:57:02 +00:00
scanner.pas * packed column writing/reading for token recorder, reduces size of fgl.ppu by approx. 10% 2011-05-20 17:43:11 +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 + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
symdef.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
symnot.pas
symsym.pas * Use public/global name 'name' section 'section' without semicolon for Windows TLS support 2011-07-01 19:29:38 +00:00
symtable.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
symtype.pas * rebase to trunk@17295 2011-04-10 19:20:48 +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 Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
version.pas
widestr.pas
wpo.pas
wpobase.pas - removed tstoreddef.reset() and overrides, and the associated 2010-06-30 19:00: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