fpc/compiler
sergei c6accaba5c * tcg386.g_copyvaluepara_openarray, improved generated code:
- second calculation of EDI is obsolete, its value is never used.
  - calculation of ECX can be partially shared with first calculation of EDI.
  - multiplying ECX by 1 is also redundant (was happening due to a wrong condition).

git-svn-id: trunk@17260 -
2011-04-06 08:54:20 +00:00
..
alpha
arm * patch by Jeppe Johansen to fix thumb2 epilog generation, resolves #18392 2011-04-05 19:25:20 +00:00
avr + avr flag and condition handling 2011-02-26 20:15:03 +00:00
html
i386 * tcg386.g_copyvaluepara_openarray, improved generated code: 2011-04-06 08:54:20 +00:00
ia64
m68k compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
mips compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
msg * updated copyright to 2011 2011-04-02 20:06:46 +00:00
powerpc + Initial Wii support 2011-02-07 16:56:45 +00:00
powerpc64 * handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in 2010-12-28 23:52:25 +00:00
ppcgen * fixed potentially wrong operation size in tgppccasenode.genlinearlist() 2011-01-08 14:20:25 +00:00
sparc compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
systems internal linker support for creating novell netware loadable modules 2011-03-27 14:47:25 +00:00
utils * samplecfg now also creates fppkg configuration files 2011-03-27 12:29:32 +00:00
vis * small typo corrections by Adriaan Van Os (mantis #15652) 2010-02-02 10:41:38 +00:00
x86 * support for SSSE3, SSE4,1, SSE4.2, AES instructions set by Emelyanov Roman, resolves #18527 2011-04-05 20:22:57 +00:00
x86_64 * support for SSSE3, SSE4,1, SSE4.2, AES instructions set by Emelyanov Roman, resolves #18527 2011-04-05 20:22:57 +00:00
aasmbase.pas internal linker support for creating novell netware loadable modules 2011-03-27 14:47:25 +00:00
aasmdata.pas * changed r16080 so that global debug labels are only created on linux 2010-10-10 13:39:46 +00:00
aasmsym.pas
aasmtai.pas * aint -> asizeint changes 2011-02-26 20:16:14 +00:00
aggas.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * fixed a number of missing label reference removals when deleting 2011-03-03 17:11:53 +00:00
asmutils.pas
assemble.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +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 growing a tbitset when adding an element whose index equals the 2010-07-18 21:58:47 +00:00
cfidwarf.pas * fix error in cfidwarf rev 16062 for non-windows systems 2010-09-30 07:41:19 +00:00
cfileutl.pas * don't look for helper executables (assembler, linker, resource compiler, 2011-01-02 20:25:41 +00:00
cg64f32.pas * renamed a_param_* to a_load_*_cgpara 2010-05-22 09:07:21 +00:00
cgbase.pas + introduction of tcgint 2011-02-26 20:15:53 +00:00
cgobj.pas * tcg.g_array_rtti_helper: if high-value is a constant, handle it without using a register. 2011-03-15 09:30:55 +00:00
cgutils.pas * aint -> asizeint change 2011-02-26 20:12:03 +00:00
cmsgs.pas compiler: remove unused variables (reduce hints) 2010-03-30 04:30:41 +00:00
comphook.pas
compiler.pas + Initial Wii support 2011-02-07 16:56:45 +00:00
compinnr.inc * implementation of bit scan intrinsics by Richard Vida, resolves #17592 2010-10-16 15:03:30 +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
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 + introduce the usage of asizeint/asizeuint for cpus with sizeof("alu")<>sizeof(pointer) 2011-02-26 20:10:03 +00:00
dbgstabs.pas + introduce the usage of asizeint/asizeuint for cpus with sizeof("alu")<>sizeof(pointer) 2011-02-26 20:10:03 +00:00
defcmp.pas * when two objectdefs resolve to the same "real" objectdef, consider them 2011-03-28 18:03:57 +00:00
defutil.pas * renamed is_class_or_interface_or_dispinterface_or_objc() into 2010-12-30 15:19:54 +00:00
export.pas
expunix.pas
finput.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
fmodule.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
fpccrc.pas
fpcdefs.inc * avr needs div helper 2011-02-26 20:14:18 +00:00
fppu.pas * fixed searching for the 8-character variant of already compiled 2010-11-12 12:10:41 +00:00
gendef.pas
globals.pas + 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
globtype.pas + introduction of tcgint 2011-02-26 20:15:53 +00:00
htypechk.pas compiler: extend enumerator support for records: 2011-01-24 04:13:28 +00:00
impdef.pas
import.pas
link.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
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 * also delete ppcppc64, ppcarm, ppcmips and ppcmipsel in the execlean target 2011-01-30 19:58:15 +00:00
Makefile.fpc * also delete ppcppc64, ppcarm, ppcmips and ppcmipsel in the execlean target 2011-01-30 19:58:15 +00:00
MPWMake
msgidx.inc * updated copyright to 2011 2011-04-02 20:06:46 +00:00
msgtxt.inc * updated copyright to 2011 2011-04-02 20:06:46 +00:00
nadd.pas compiler: 2011-01-02 04:35:05 +00:00
nbas.pas * moved the initialisation of the nodetree and tai class reference constants 2010-10-09 18:52:22 +00:00
ncal.pas * Fixed handling of "open array of managed type" out-parameters at caller side. Reference count should be decremented only for those array elements which are actually passed to the called procedure; it may be a part of original array if range or slice is used. Concludes work on #18859. 2011-03-15 09:17:24 +00:00
ncgadd.pas * fixed and simplified tcgaddnode.second_addsmallset: don't modify 2010-12-30 14:55:57 +00:00
ncgbas.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
ncgcal.pas * Fixed handling of "open array of managed type" out-parameters at caller side. Reference count should be decremented only for those array elements which are actually passed to the called procedure; it may be a part of original array if range or slice is used. Concludes work on #18859. 2011-03-15 09:17:24 +00:00
ncgcnv.pas * convert LOC_FLAGS/LOC_JUMP to cbool value in bool_to_bool conversion, 2010-08-16 17:54:39 +00:00
ncgcon.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
ncgflw.pas * Safecall on linux/i386 now behaves like cdecl plus hidden exception support. 2010-08-27 19:07:22 +00:00
ncginl.pas * corrected version of r16812: code generation is still handled specially 2011-01-26 14:50:18 +00:00
ncgld.pas compiler, rtl: add vtUnicodeString (issue #0018560) 2011-01-29 09:18:53 +00:00
ncgmat.pas + introduce the usage of asizeint/asizeuint for cpus with sizeof("alu")<>sizeof(pointer) 2011-02-26 20:10:03 +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 compiler: mark operator overloads as operators in rtti (although classes don't have operator overloads now) 2010-12-31 02:24:22 +00:00
ncgset.pas
ncgutil.pas Continue fixing open array handling: 2011-03-05 18:45:44 +00:00
ncnv.pas * merged tasnode.pass_typecheck() and tisnode.pass_typecheck() into a single 2011-01-30 10:37:21 +00:00
ncon.pas * Improvements to Dispatch call handling: 2010-11-18 16:17:50 +00:00
nflw.pas compiler: extend enumerator support for records: 2011-01-24 04:13:28 +00:00
ninl.pas + support str(<boolean>,...), boolean is an enumeration type 2011-01-30 14:27:09 +00:00
nld.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
nmat.pas compiler: set result value to dummy function to prevent compiler to generate a hint 2010-12-28 09:51:26 +00:00
nmem.pas * renamed is_class_or_interface_or_dispinterface_or_objc() into 2010-12-30 15:19:54 +00:00
nobj.pas compiler: use current_structdef instead of current_objectdef in more places 2010-12-30 06:46:06 +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 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 * Avoid crash if right node of _IN keyword is a type node that is not a set 2011-03-21 07:57: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 * renamed objcdef.addencodedtype to objcaddencodedtype for consistency 2010-12-19 19:37:47 +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 internal linker support for creating novell netware loadable modules 2011-03-27 14:47:25 +00:00
ogcoff.pas * ogcoff.pas: 2010-11-26 23:46:49 +00:00
ogelf.pas + basic i386-embedded implementation for multiboot by Jeppe Johansen, resolves #15676 2011-01-23 11:18:50 +00:00
oglx.pas
ogmacho.pas + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and 2010-09-29 21:56:47 +00:00
ogmap.pas
ognlm.pas internal linker support for creating novell netware loadable modules 2011-03-27 14:47:25 +00:00
optbase.pas
optcse.pas + introduces vo_volatile for variables, the node cse optimizer takes care of it 2011-01-30 16:32:50 +00:00
optdead.pas
optdfa.pas
options.pas * fixed internal assembler for x86-64 so that it correctly handles 2011-01-06 09:28:25 +00:00
optloop.pas * handle unrolling of for ... downto ... correctly, resolves #15668 2010-02-10 21:08:54 +00:00
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 + introduction of tcgint 2011-02-26 20:15:53 +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 compiler: use current_structdef instead of current_objectdef in more places 2010-12-30 06:46:06 +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 * when checking whether the current class definition finalises an existing 2011-03-13 13:34:49 +00:00
pdecobj.pas * handle implementing objcprotocols that are defined as formal external 2011-03-23 22:23:08 +00:00
pdecsub.pas * use compare_defs() instead of a plain "=" comparison to check that the 2011-03-29 18:51:36 +00:00
pdecvar.pas compiler: treat record/class fields types as bt_var_type block in delphi mode - as result they don't create a forward declaration for ^Type. Leave it as is for other modes because in other case it break the compilation of RTL and packages (fixes issue #0018620) 2011-01-29 07:32:10 +00:00
pexports.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pexpr.pas * replaced all tobjectdef() typecasts of the first argument of 2011-03-28 15:23:25 +00:00
pinline.pas Continue fixing open array handling: 2011-03-05 18:45:44 +00:00
pmodules.pas compiler: call gen_intf_wrappers not only for unit symtables but also for syntables of records and object types because they can contain nested classes (bug #0018610) 2011-01-26 13:50:36 +00:00
pp.lpi * updated to version 9 2011-01-23 11:01:37 +00:00
pp.pas
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcavr.lpi * compilation fixes 2011-02-26 20:08:23 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.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
ppx86_64.lpi
procinfo.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
pstatmnt.pas * renamed is_class_or_interface_or_dispinterface_or_objc() into 2010-12-30 15:19:54 +00:00
psub.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
psystem.pas + introduce the usage of asizeint/asizeuint for cpus with sizeof("alu")<>sizeof(pointer) 2011-02-26 20:10:03 +00:00
ptconst.pas * aint -> asizeint changes 2011-02-26 20:16:14 +00:00
ptype.pas * fix compilation when object type cast checking is on 2011-04-03 10:50:34 +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 ARM CPS/CPSIE/CPSID instructions and mode flag bitfield 2011-01-11 16:02:51 +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 compiler: replace MODESWTICH POINTERARITHMETICS with $POINTERMATH directive, disable pointer arithmetic in delphi mode by default (compatible with delphi), enable pointer arithmetic in fpc/objfpc modes as they had it enabled by default before, add has_pointer_math field to tpointerdef to allow pointer arithmetic with such pointer even if pointer math mode is off (delphi compatible) + tests 2010-12-29 03:24:28 +00:00
scanner.pas compiler: replace MODESWTICH POINTERARITHMETICS with $POINTERMATH directive, disable pointer arithmetic in delphi mode by default (compatible with delphi), enable pointer arithmetic in fpc/objfpc modes as they had it enabled by default before, add has_pointer_math field to tpointerdef to allow pointer arithmetic with such pointer even if pointer math mode is off (delphi compatible) + tests 2010-12-29 03:24:28 +00:00
script.pas
switches.pas
symbase.pas
symconst.pas + introduces vo_volatile for variables, the node cse optimizer takes care of it 2011-01-30 16:32:50 +00:00
symdef.pas * always print the fully qualified type name in case a type is nested 2011-03-23 22:24:37 +00:00
symnot.pas
symsym.pas + introduce the usage of asizeint/asizeuint for cpus with sizeof("alu")<>sizeof(pointer) 2011-02-26 20:10:03 +00:00
symtable.pas * set result of searchsym_in_record() in case nothing was found 2011-03-21 12:42:23 +00:00
symtype.pas * always print the fully qualified type name in case a type is nested 2011-03-23 22:24:37 +00:00
symutil.pas
systems.pas internal linker support for creating novell netware loadable modules 2011-03-27 14:47:25 +00:00
tgobj.pas
tokens.pas compiler: map delphi Implicit operator to := operator of FPC, add Explicit operator for delphi only (for now) which works when explicit type conversion happens + extend test 2010-12-25 11:08:02 +00:00
verbose.pas * force always printing absolute paths when using -vb (mantis #15783) 2010-03-10 10:04:51 +00:00
version.pas
widestr.pas * fixed storing/loading widestring constant nodes into/from ppu files 2010-03-14 13:27:00 +00:00
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