fpc/compiler
2015-09-16 13:52:15 +00:00
..
aarch64 * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
arm * ARM: Do not use R9 as a fixed GOT register. 2015-09-16 13:52:15 +00:00
avr * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
generic Moved tcontrollerdatatype out into cpuinfo. 2015-09-07 20:36:54 +00:00
html
i386 * factored out the loading of threadvars in its own method, and put the 2015-09-12 23:32:53 +00:00
i8086 * moved the i8086-specific threadvar generation code from 2015-09-15 13:02:25 +00:00
jvm + support for the text/file types on the JVM platform 2015-09-15 11:51:19 +00:00
llvm * converted tnodeutils.InsertMemorySizes() to the high level typed constant 2015-09-14 16:10:54 +00:00
m68k * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
mips * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
msg * use binutils 2.19+ linker script "augmentation" functionality to specify 2015-09-14 07:24:54 +00:00
powerpc * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
powerpc64 Moved tcontrollerdatatype out into cpuinfo. 2015-09-07 20:36:54 +00:00
ppcgen * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
sparc * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
systems * arm-android: Enable PIC by default. 2015-09-15 18:22:24 +00:00
utils * moved the generation of the "main" stub for libc-based platforms from 2015-09-12 23:34:01 +00:00
x86 - cclasses unit is not used 2015-09-13 21:07:21 +00:00
x86_64 * Win64 SEH: Track control flow out of unwind-protected regions in a more precise way and don't generate expensive calls to __fpc_local_unwind when not necessary. 2015-09-09 18:43:46 +00:00
aasmbase.pas + tasmlabel.createstatic() constructor for creating static data labels 2015-03-27 21:25:40 +00:00
aasmcnst.pas + new tcalo_no_dead_strip flag for the high level typed const builder to 2015-09-14 16:10:51 +00:00
aasmdata.pas * put the code for pure assembler routines in a separate asmlist, so 2015-09-12 23:32:21 +00:00
aasmsym.pas
aasmtai.pas * ait_jcatch should not be skipped by optimizers, as it does result in 2015-08-29 10:08:15 +00:00
aggas.pas * Big fix for ARM GOT support to make it work: 2015-09-14 23:15:10 +00:00
aopt.pas - removed long deprecated/buggy assembler cse optimiser for i386 2015-05-09 17:25:07 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * base optimiser support for the JVM target 2015-08-29 10:08:19 +00:00
assemble.pas * when generating code for a pure assembler routine with LLVM, instantiate 2015-09-12 23:32:31 +00:00
blockutl.pas + extend ttypesym with the possiblity to create it as unregistered 2015-09-11 13:22:12 +00:00
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cfidwarf.pas
cfileutl.pas
cg64f32.pas + support 8 locations in splitparaloc64 2015-04-10 20:32:22 +00:00
cgbase.pas + initialize DS with the current unit's data segment in the function entry code 2015-09-03 21:44:16 +00:00
cghlcpu.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
cgobj.pas * handle the loading of VMT entries at the node level, so it's done in a 2015-05-31 16:50:47 +00:00
cgutils.pas * define avr => cpu8bitalu 2015-09-13 21:07:23 +00:00
cmsgs.pas
comphook.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
compiler.pas
compinnr.inc
comprsrc.pas + ELF/ppc64le resource support 2015-03-14 18:36:32 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * changed emit_ansistring_const() and emit_unicodestring_const() into 2015-03-27 21:25:53 +00:00
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas
dbgdwarf.pas * ensure that the dwarf file table contains an entry if the current unit 2015-08-17 08:47:38 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas defcmp.pas, compare_paras: 2015-09-11 13:42:51 +00:00
defutil.pas - removed symcpu dependencies 2015-06-13 22:47:59 +00:00
dirparse.pas
elfbase.pas
export.pas
expunix.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
finput.pas
fmodule.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
fpccrc.pas
fpcdefs.inc - removed FPC_HAS_VARSETS-related checks, FPC 2.6.4 has it 2015-09-15 11:51:42 +00:00
fppu.pas
gendef.pas
globals.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
globstat.pas
globtype.pas * use binutils 2.19+ linker script "augmentation" functionality to specify 2015-09-14 07:24:54 +00:00
hlcg2ll.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
hlcgobj.pas * moved the generation of the "main" stub for libc-based platforms from 2015-09-12 23:34:01 +00:00
htypechk.pas * resolve formal/anonymous external classes before comparing parameters to 2015-08-30 14:33:01 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
macho.pas
machoutils.pas
Makefile * regenerated makefiles after adding the win16 target 2015-09-05 11:02:54 +00:00
Makefile.fpc * regenerated makefiles after adding the win16 target 2015-09-05 11:02:54 +00:00
MPWMake
msgidx.inc * use binutils 2.19+ linker script "augmentation" functionality to specify 2015-09-14 07:24:54 +00:00
msgtxt.inc * use binutils 2.19+ linker script "augmentation" functionality to specify 2015-09-14 07:24:54 +00:00
nadd.pas * rename WinCE softfp compilerproc names to lowercase, needed since r31404 2015-09-02 09:54:02 +00:00
nbas.pas + new parser-only node class to handle Delphi-mode inline specializations 2015-09-11 12:58:25 +00:00
ncal.pas - removed double calling of handlemanagedbyrefpara() for managed targets, 2015-09-13 19:06:29 +00:00
ncgadd.pas - disabled x86-specific code when using llvm 2015-09-15 11:51:29 +00:00
ncgbas.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgcal.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncgcnv.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncgcon.pas * converted tcgguidconstnode.pass_generate_code to use the high level typed 2015-07-03 20:04:18 +00:00
ncgflw.pas * Win64 SEH: Track control flow out of unwind-protected regions in a more precise way and don't generate expensive calls to __fpc_local_unwind when not necessary. 2015-09-09 18:43:46 +00:00
ncghlmat.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncginl.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgld.pas * fixed compilation of threadvars in i8086 far data memory models 2015-09-13 12:52:23 +00:00
ncgmat.pas + support mmregisters in the generic unaryminus code for floats 2015-09-12 23:33:50 +00:00
ncgmem.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * write full/init rtti and VMTs separately instead of at the same time 2015-09-12 23:32:38 +00:00
ncgset.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncgutil.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncgvmt.pas * also construct the high level code generator for high level targets; they 2015-09-15 11:51:22 +00:00
ncnv.pas * rename WinCE softfp compilerproc names to lowercase, needed since r31404 2015-09-02 09:54:02 +00:00
ncon.pas + write the value of a pointer constant node in printnodedata 2015-08-31 20:03:47 +00:00
nflw.pas + extend tprocdef with the possiblity to create it as unregistered 2015-09-11 13:36:00 +00:00
ngenutil.pas * converted tnodeutils.InsertMemorySizes() to the high level typed constant 2015-09-14 16:10:54 +00:00
ngtcon.pas - removed ttai_lowleveltypedconstbuilder.queue_addrn(), as we are always 2015-07-30 16:58:07 +00:00
ninl.pas + tinlinenode.createintern 2015-08-31 20:03:51 +00:00
nld.pas * take care of nf_internal when doing range checking and inserting type conversions in tassignmentnode.pass_typecheck 2015-08-31 20:03:54 +00:00
nmat.pas * rename WinCE softfp compilerproc names to lowercase, needed since r31404 2015-09-02 09:54:02 +00:00
nmem.pas + fold the constructs @<record type>(nil^).<field >) and @<record point>(nil)^.<field> used to get the offset of a field into a constant 2015-08-31 20:03:49 +00:00
nobj.pas Fix for Mantis #28442. Do not generate the VMT record definition for generic classes. It isn't used anyway. 2015-08-07 15:02:55 +00:00
nobjc.pas
node.pas + new parser-only node class to handle Delphi-mode inline specializations 2015-09-11 12:58:25 +00:00
nopt.pas
nset.pas * fixed "case <string> of" with multiple labels for a single statement after 2015-07-03 20:04:25 +00:00
nstate.pas
nutils.pas * extended nodes which return true from is_const 2015-08-31 20:03:52 +00:00
objcdef.pas
objcgutl.pas * AArch64 also uses the non-fragile Objective-C ABI 2015-02-23 22:51:31 +00:00
objcutil.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ogbase.pas + support addr_fardataseg references in the internal asm writer 2015-09-04 14:33:48 +00:00
ogcoff.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
ogelf.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
oglx.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
ogmacho.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
ogmap.pas * the code for displaying a symbol address in the linker map file moved to a 2015-08-24 22:12:00 +00:00
ognlm.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
ogomf.pas * fixed compilation with -Oodfa/-O3 2015-09-14 16:10:57 +00:00
omfbase.pas * use the 'FAR_DATA' segment class name instead of 'DATA' or 'BSS' in the huge 2015-09-03 17:53:15 +00:00
optbase.pas
optconstprop.pas
optcse.pas * don't perform CSE on typeconversion nodes inserted for absolute 2015-07-04 22:28:31 +00:00
optdead.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
optdeadstore.pas
optdfa.pas
options.pas - removed FPC_OBJFPC_EXTENDED_IF-related code, FPC 2.6.4 has it 2015-09-15 11:52:02 +00:00
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
owbase.pas * support writing more than 1024 zeros in tobjectwriter.writezeros 2015-08-24 01:09:53 +00:00
owomflib.pas + implemented writing proper win16 dll import libraries 2015-09-05 13:45:23 +00:00
parabase.pas
paramgr.pas * changed getarraydef() into a tarraydef.getreusable() class method 2015-06-23 21:23:18 +00:00
parser.pas + set the win16 local heap size in the executable 2015-09-06 13:52:22 +00:00
pass_1.pas
pass_2.pas * fixed compilation of the compiler with -dEXTDEBUG after r31588 2015-09-12 11:55:54 +00:00
pbase.pas
pdecl.pas + extend ttypesym with the possiblity to create it as unregistered 2015-09-11 13:22:12 +00:00
pdecobj.pas + extend tobjectdef with the possiblity to create it as unregistered 2015-09-11 13:28:49 +00:00
pdecsub.pas pdecsub.pas, proc_add_definition: 2015-09-11 14:13:54 +00:00
pdecvar.pas + extend tprocdef with the possiblity to create it as unregistered 2015-09-11 13:36:00 +00:00
pexports.pas
pexpr.pas - removed FPC_REAL2REAL_FIXED-related checks, FPC 2.6.4 has it 2015-09-15 11:51:51 +00:00
pgentype.pas pgenutil.pas: 2015-09-04 15:37:54 +00:00
pgenutil.pas pgenutil.pas, parse_generic_specialization_types_internal: 2015-09-11 15:18:44 +00:00
pinline.pas
pmodules.pas * moved the generation of the "main" stub for libc-based platforms from 2015-09-12 23:34:01 +00:00
pp.lpi
pp.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
pparautl.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ppc68k.lpi
ppc8086.lpi + started implementing a win16 target :) 2015-09-05 02:47:42 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * fixed truncation errors for a*int/word in ppudump for architectures 2015-06-13 22:47:56 +00:00
ppx86_64.lpi
procinfo.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
pstatmnt.pas * do not call typecheckpass unncessarily in generic definitions, it might cause only errors, resolves #28058 2015-08-02 20:29:30 +00:00
psub.pas * changed fix for webtbs/tw20075 so that we don't check the need for 2015-09-12 23:31:50 +00:00
psystem.pas + extend ttypesym with the possiblity to create it as unregistered 2015-09-11 13:22:12 +00:00
ptconst.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ptype.pas + extend ttypesym with the possiblity to create it as unregistered 2015-09-11 13:22:12 +00:00
raatt.pas * merged ait_set and ait_thumb_set into a single tai class 2015-03-14 18:35:28 +00:00
rabase.pas
rasm.pas
rautils.pas + support 'SEG' in the i8086 inline assembler 2015-08-26 15:57:44 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * fix wrong comparisons in trgobj.conservative to enable better coalescing, 2015-08-28 18:49:04 +00:00
scandir.pas * changed paratargetdbg from a global variable into a field of toption 2015-08-28 22:31:17 +00:00
scanner.pas scanner.pas, tscanner: 2015-09-04 13:27:28 +00:00
script.pas
switches.pas
symbase.pas
symconst.pas * only add the llvm "sret" attribute to "struct return" parameters if they 2015-09-14 16:10:48 +00:00
symcreat.pas * support for implementing interface method wrappers at the node tree 2015-09-12 23:32:42 +00:00
symdef.pas * don't allow records to be put in registers for the llvm target 2015-09-15 11:51:25 +00:00
symnot.pas
symsym.pas + extend ttypesym with the possiblity to create it as unregistered 2015-09-11 13:22:12 +00:00
symtable.pas * fixed skipping if intermediate fields in llvm shadow symtable 2015-09-12 23:32:56 +00:00
symtype.pas * change rtti_mangledname resultdef into TSymStr 2015-07-30 16:57:45 +00:00
symutil.pas
systems.inc + started implementing a win16 target :) 2015-09-05 02:47:42 +00:00
systems.pas + new target switch "FarProcsPushOddBP", which causes the i8086 compiler to push 2015-09-07 19:05:18 +00:00
tgobj.pas * suppress (harmless) range error 2015-05-31 16:50:50 +00:00
tokens.pas
verbose.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
version.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
widestr.pas * converted widestr.charlength() to use system.Utf8CodePointLen() 2015-03-01 17:12:27 +00:00
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