fpc/compiler
2013-11-01 19:01:31 +00:00
..
aarch64 Implement support for saving and restoring address registers. 2013-10-05 21:43:42 +00:00
alpha
arm * (re)set upper bits of register when appropriate for all operations in 2013-10-22 07:41:52 +00:00
avr Implement support for saving and restoring address registers. 2013-10-05 21:43:42 +00:00
generic
html
i386 * set file positions correctly in PeepHoleOptPass1 2013-11-01 19:01:31 +00:00
i8086 * optimized SAR by 31 to use only one SAR instruction in tcg8086.a_op_const_reg 2013-10-30 16:53:59 +00:00
ia64
jvm * fixed compilation after r25847 (mantis #25237) 2013-10-27 17:35:04 +00:00
m68k enabled hardware mul reg, reg codepath for ColdFire too, accelerates tfloattostr test (thus some of the SoftFPU code) by a magnitude... 2013-10-13 21:36:24 +00:00
mips * tmipsaddnode.second_addfloat: don't bother reusing locations, always allocate a new register for result. 2013-10-26 18:15:24 +00:00
msg compiler: 2013-10-08 04:56:42 +00:00
powerpc Implement support for saving and restoring address registers. 2013-10-05 21:43:42 +00:00
powerpc64 Implement support for saving and restoring address registers. 2013-10-05 21:43:42 +00:00
ppcgen * set symbol type/binding of data referred by ppc and arm/darwin stubs (part 2013-08-17 16:26:37 +00:00
sparc * fixed size of temporary register used to evaluate smallset<=/>=smallset 2013-10-27 17:34:59 +00:00
systems + tell wlink to add dwarf debug info to the executable when -gw2/3/4 is used 2013-10-27 20:30:00 +00:00
utils + added i8086 to the list of supported CPUs by FPC.exe 2013-10-15 13:29:51 +00:00
vis
x86 * be able to replace lea by add when spilling 2013-11-01 19:01:20 +00:00
x86_64 * optimize mov/lea 2013-11-01 19:01:14 +00:00
aasmbase.pas
aasmdata.pas * Removed tasmdata.realname (it is not used anywhere) and changed tasmdata.name to pshortstring. The name string is owned by tmodule and referenced by tasmdata. This removes 80-char limit on tasmdata.name, Mantis #25009. 2013-09-19 10:06:43 +00:00
aasmsym.pas
aasmtai.pas * fix handling of register sets on m68k: it is required that they are stored as two tcpuregistersets because address registers and data registers have different register types 2013-10-09 18:15:06 +00:00
aggas.pas Improve the cpu type handling for M68k just in case we should branch 2.8.0 before I can start working on M68k again. 2013-09-11 17:07:32 +00:00
agjasmin.pas
aopt.pas
aoptbase.pas * Moved SkipEntryExitMarker method from ARM optimizer to the base one, since it is not target-dependent. Now it can be reused by other targets. 2013-10-10 21:12:49 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas * check if the pointer is really assigned when trying to remove unneeded jumps 2013-10-27 16:47:34 +00:00
asmutils.pas
assemble.pas Improve the cpu type handling for M68k just in case we should branch 2.8.0 before I can start working on M68k again. 2013-09-11 17:07:32 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas Fix for Mantis #21051. Correctly handle specializations that occur during the specialization of methods. 2013-09-26 08:15:58 +00:00
cfidwarf.pas
cfileutl.pas Allow compilation of compiler with 2.6.x RTL for simplyfied development. 2013-09-11 16:05:24 +00:00
cg64f32.pas
cgbase.pas * fold mov/lea/mov as well if possible 2013-11-01 19:01:29 +00:00
cghlcpu.pas
cgobj.pas * specify AT_DATA in all references to the tobjectdef.vmt_mangledname symbol. 2013-10-15 18:56:27 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc
comprsrc.pas
constexp.pas * workaround for 2.6.x to avoid overflow errors when compiled with -CRiot 2013-06-26 21:40:52 +00:00
COPYING.txt * updated address of FSF (mantis #24646, patch by Alexey Svistunov) 2013-06-27 14:04:34 +00:00
cpid.pas
crefs.pas
cresstr.pas * i8086 medium model fixes in Tresourcestrings.CreateResourceStringData 2013-08-18 21:18:22 +00:00
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgdwarf.pas + added enum Tdwarf_addr with the values of DW_AT_address_class (to be used for 2013-10-27 18:40:59 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas Fix for Mantis #25132 2013-10-25 19:50:56 +00:00
defutil.pas + added is_farpointer(tdef) and is_hugepointer(tdef) helper functions to defutil 2013-06-10 20:50:05 +00:00
dirparse.pas * moved UpdateAlignmentStr, UpdateOptimizerStr, UpdateWpoStr and UpdateDebugStr from unit globals to unit dirparse 2013-10-04 08:26:02 +00:00
elfbase.pas
export.pas
expunix.pas
finput.pas
fmodule.pas * Removed tasmdata.realname (it is not used anywhere) and changed tasmdata.name to pshortstring. The name string is owned by tmodule and referenced by tasmdata. This removes 80-char limit on tasmdata.name, Mantis #25009. 2013-09-19 10:06:43 +00:00
fpccrc.pas
fpcdefs.inc Improve the cpu type handling for M68k just in case we should branch 2.8.0 before I can start working on M68k again. 2013-09-11 17:07:32 +00:00
fppu.pas + added i8086 memory model flags to the ppu flags and added a check that prevents the using of units compiled for different memory models 2013-08-25 16:45:04 +00:00
gendef.pas
globals.pas * the default packrecords setting changed to 1 on i8086 for Turbo Pascal 7 2013-10-07 20:42:17 +00:00
globstat.pas
globtype.pas + added new field 'define' to ttargetswitchinfo, which specifies a system macro 2013-09-28 14:14:32 +00:00
hlcg2ll.pas + def_cgmmsize() that returns a vector tcgsize for arraydefs (as generated 2013-06-02 10:24:08 +00:00
hlcgobj.pas - removed commented out duplicate thlcg.getmmregister() 2013-10-31 12:30:53 +00:00
htypechk.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * Changed linking infrastructure to look like assembler one: 2013-08-18 12:01:21 +00:00
macho.pas
machoutils.pas
Makefile * regenerated fpcmake makefiles after r25642 2013-10-05 10:11:27 +00:00
Makefile.fpc * make insdatx86 now also refereshes the i8086 ins files 2013-09-28 21:08:21 +00:00
MPWMake
msgidx.inc compiler: 2013-10-08 04:56:42 +00:00
msgtxt.inc compiler: 2013-10-08 04:56:42 +00:00
nadd.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
nbas.pas * keep managed types in registers if possible. Under certain circumstances (if they don't require init/final code, 2013-06-23 15:16:30 +00:00
ncal.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
ncgadd.pas + avx uses add to multiply by 2 2013-06-15 21:18:40 +00:00
ncgbas.pas * keep managed types in registers if possible. Under certain circumstances (if they don't require init/final code, 2013-06-23 15:16:30 +00:00
ncgcal.pas Implement volatile address registers. Fixes quite some tests, but also breaks others... (overall more are fixed than are broken :) ) 2013-10-03 20:33:11 +00:00
ncgcnv.pas Refactor tobjectdef.find_implemented_interface out into unit defcmp so that the recently introduced cycle between symdef and defcmp can be broken again. 2013-10-23 19:05:00 +00:00
ncgcon.pas
ncgflw.pas * specify AT_DATA in all references to the tobjectdef.vmt_mangledname symbol. 2013-10-15 18:56:27 +00:00
ncginl.pas * specify AT_DATA in all references to the tobjectdef.vmt_mangledname symbol. 2013-10-15 18:56:27 +00:00
ncgld.pas * specify AT_DATA when refering to the 'RESSTR' symbols; among other things, 2013-10-15 22:06:16 +00:00
ncgmat.pas
ncgmem.pas * specify AT_DATA in all references to the tobjectdef.vmt_mangledname symbol. 2013-10-15 18:56:27 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fixed class VMT generation for the i8086 medium memory model (near code, far data) by setting correctly the Tasmsymtype to each symbol according to whether it points to code or data 2013-08-18 00:03:55 +00:00
ncgset.pas
ncgutil.pas * 16/8-bit ALU fixes in ncgutil.gen_free_symtable 2013-10-13 16:48:15 +00:00
ncgvmt.pas * fixed class VMT generation for the i8086 medium memory model (near code, far data) by setting correctly the Tasmsymtype to each symbol according to whether it points to code or data 2013-08-18 00:03:55 +00:00
ncnv.pas + get rid of unnecessary 64 bit conversions too if one of the operands is 8 or 16 bit 2013-11-01 19:01:09 +00:00
ncon.pas * also compare the type of tordconstnode in docompare, so that the node CSE 2013-09-28 14:12:50 +00:00
nflw.pas * traisenode.pass_typecheck: in the case of 'raise X at addr,frame' require 'addr' to be a far pointer in i8086 far code memory models 2013-09-17 21:31:30 +00:00
ngenutil.pas + -CTinitlocals switch for the JVM that initialises all local variables 2013-08-29 22:21:23 +00:00
ngtcon.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
ninl.pas * Handle "SarInt64" always as internal procedure, introduced virtual method tinlinenode.first_sar that by default converts it into call to "fpc_sarint64" unless target CPU is 64-bit. This provides a point to insert target-specific optimizations. 2013-10-28 14:31:36 +00:00
nld.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
nmat.pas * tmoddivnode.firstoptimize improvements/fixes: 2013-10-28 15:55:13 +00:00
nmem.pas + implemented absolute seg:ofs vars on i8086 2013-10-05 22:16:33 +00:00
nobj.pas
nobjc.pas
node.pas * Handle assigned(x) expressions entirely in first pass by converting them to "x<>nil", indicate that procedure variables should not be called by setting nf_load_procvar flag (which is already used with typeconvnode for exactly the same purpose). This allows to generate better code when assigned(x) is used on right side of assigments. Mantis #24572. 2013-09-16 14:38:38 +00:00
nopt.pas * when concatenating ansistrings, do not map CP_NONE (rawbytestring) to 2013-07-19 16:33:14 +00:00
nset.pas
nstate.pas
nutils.pas Implement cross unit type overloading of generics. This fixes the regression introduced with revision 25498. 2013-09-18 14:28:46 +00:00
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + Property TObjSymbol.ObjData, allows to access owning TObjData for external/common symbols, i.e. ones with ObjSection=nil. 2013-07-30 09:23:48 +00:00
ogcoff.pas
ogelf.pas + Property TObjSymbol.ObjData, allows to access owning TObjData for external/common symbols, i.e. ones with ObjSection=nil. 2013-07-30 09:23:48 +00:00
oglx.pas
ogmacho.pas
ogmap.pas + Property TObjSymbol.ObjData, allows to access owning TObjData for external/common symbols, i.e. ones with ObjSection=nil. 2013-07-30 09:23:48 +00:00
ognlm.pas
optbase.pas
optcse.pas * work with actualtargetnode when checking load nodes for cse 2013-09-07 17:44:44 +00:00
optdead.pas
optdfa.pas
options.pas + allow smartlinking and dwarf debug info at the same time for i8086-msdos 2013-10-27 20:26:34 +00:00
optloop.pas * store break/continue usage in a variable 2013-08-11 21:13:24 +00:00
opttail.pas * optimize also tail calls, if it is a simple procedure 2013-10-06 13:51:38 +00:00
optutils.pas + has_life_info 2013-06-14 20:52:40 +00:00
optvirt.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
owar.pas
owbase.pas
parabase.pas
paramgr.pas Implement volatile address registers. Fixes quite some tests, but also breaks others... (overall more are fixed than are broken :) ) 2013-10-03 20:33:11 +00:00
parser.pas
pass_1.pas
pass_2.pas
pbase.pas compiler: 2013-10-08 04:56:42 +00:00
pdecl.pas * convert unicode/widestring constants to ansistring in resourcestring 2013-10-17 12:43:39 +00:00
pdecobj.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
pdecsub.pas Refactor tobjectdef.find_implemented_interface out into unit defcmp so that the recently introduced cycle between symdef and defcmp can be broken again. 2013-10-23 19:05:00 +00:00
pdecvar.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
pexports.pas
pexpr.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
pgenutil.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
pinline.pas Implement cross unit type overloading of generics. This fixes the regression introduced with revision 25498. 2013-09-18 14:28:46 +00:00
pmodules.pas compiler: remove unneeded push/pop to symtablestack 2013-09-18 05:24:19 +00:00
pp.lpi * project file updated for newer lazarus versions 2013-10-06 13:13:53 +00:00
pp.pas
pparautl.pas * add $parentfp as a first parameter on i8086, instead of last. This makes 2013-10-18 21:37:06 +00:00
ppc68k.lpi
ppc8086.lpi + i8086/n8086cnv.pas added to lazarus project 2013-06-10 01:19:22 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas + save the absolute variable's segment to the ppu file after r25666 2013-10-06 00:32:10 +00:00
ppx86_64.lpi
procinfo.pas compiler: fix calling class methods from a nested routine of a static class method (mantis #0024865) 2013-08-17 04:44:19 +00:00
pstatmnt.pas compiler: don't output an error twice in 'on Exception do' block if Exception is not a valid type 2013-09-05 00:46:26 +00:00
psub.pas Fix for Mantis #21051. Correctly handle specializations that occur during the specialization of methods. 2013-09-26 08:15:58 +00:00
psystem.pas * also load the methodpointer type for managed VM types. It's required 2013-09-24 23:57:21 +00:00
ptconst.pas
ptype.pas compiler: 2013-10-08 04:56:42 +00:00
raatt.pas Add support in ARM assembler reader for ldr reg, =literal syntax 2013-07-21 16:06:57 +00:00
rabase.pas
rasm.pas
rautils.pas * fix handling of register sets on m68k: it is required that they are stored as two tcpuregistersets because address registers and data registers have different register types 2013-10-09 18:15:06 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas Print aX or aregX for address registers if DEBUG_REGISTERLIFE is defined. 2013-10-05 21:48:28 +00:00
scandir.pas + allow smartlinking and dwarf debug info at the same time for i8086-msdos 2013-10-27 20:26:34 +00:00
scanner.pas Fix for Mantis #25215. 2013-10-20 12:15:49 +00:00
script.pas
switches.pas
symbase.pas compiler: have unit interface symtable in stack while parsing implementation uses list (fixes issue #10477) 2013-09-17 08:53:37 +00:00
symconst.pas + added po_far to tprocoptions 2013-06-08 16:34:30 +00:00
symcreat.pas
symdef.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
symnot.pas
symsym.pas * fixed some bugs in the camelCase conversion performed on the JVM target by 2013-10-23 22:44:45 +00:00
symtable.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
symtype.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
symutil.pas
systems.inc * restores atari support/rtl partially 2013-10-06 19:36:59 +00:00
systems.pas + added a new tsystemflag tf_cld, which indicates that ts_cld should be enabled 2013-09-28 14:57:12 +00:00
tgobj.pas
tokens.pas compiler: don't treat TRUE and FALSE as keywords. They are predefined constants from this moment. This change is compatible with other pascal compilers. Fixes issue #0025030 2013-09-16 09:11:17 +00:00
verbose.pas
version.pas
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