fpc/compiler
2017-10-01 18:59:01 +00:00
..
aarch64 * fix aarch64 building 2017-08-22 08:44:56 +00:00
arm + patch by Simon Ameis: adds all the STM32F091* microcontroller units to the list of supported ARM MCUs, resolves issue #32484 2017-10-01 18:59:01 +00:00
avr handle correctly "reg+const" operands in avr assembler, fixes issue #32016 2017-09-26 20:14:41 +00:00
generic
html
i386 + call TX86AsmOptimizer.OptPass1VOP for logical operations as well 2017-10-01 14:40:21 +00:00
i8086 + added CPUX86_HAS_SSE2 to x86 tcpuflags 2017-09-26 16:02:56 +00:00
jvm * rework InsertInitFinalTable a bit more so that the list of init/fini entries does not need to be generated twice for AVR 2017-05-23 19:58:39 +00:00
llvm + inline trunc() support for the LLVM backend when using -Oofastmath (because 2017-05-20 19:28:15 +00:00
m68k Call ungetregister for NR_D2 at m68k-palmos syscall exit 2017-09-28 14:55:41 +00:00
mips * only take into account the location of the parameter at the callee side to 2017-05-21 20:17:11 +00:00
msg + add support for $SetPE{OS,SubSys,User}Version directives; Delphi compatible; Note: $SetPEUserVersion takes precedence to $Version 2017-09-30 13:55:29 +00:00
powerpc - TPPCMPWAssembler: remove support for 8-Byte alignment again as that shouldn't be necessary anymore with the alignment fixes in i_macos.pas; so it's better we get an internal error again if someone tries to use it 2017-08-12 15:42:04 +00:00
powerpc64 * only take into account the location of the parameter at the callee side to 2017-05-21 20:17:11 +00:00
ppcgen morphos: added legacy GNU AS support for the ancient AS version, which is still bundled as default in the SDK. switches off named sections support in the assembler generator 2017-06-11 23:36:40 +00:00
sparc * split create_paraloc_info_intern for sparc32 and sparc64 2017-08-20 15:21:51 +00:00
sparc64 * take advantage of the fact that SRA reg1,x,reg2 sign extends to the upper 32 bit bits of a 64 bit register 2017-08-20 17:20:37 +00:00
sparcgen + cas* mnemonics for sparc64 2017-09-11 20:06:22 +00:00
systems m68k-palmos: internal sysinit, and patch target support so it works prc-tools-remix on a modern system 2017-09-16 21:34:55 +00:00
utils o patch by J. Gareth "Kit" Moreton, resolves partially issue #32037 2017-10-01 18:40:09 +00:00
x86 o patch by J. Gareth "Kit" Moreton, resolves partially issue #32037 2017-10-01 18:40:11 +00:00
x86_64 o patch by J. Gareth "Kit" Moreton, resolves partially issue #32037 2017-10-01 18:40:09 +00:00
aasmbase.pas
aasmcnst.pas * properly align unicode- and ansistring constants 2017-06-19 21:18:03 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas
aggas.pas * Use .rodata and .data.rel.ro sections for Android with PIC. 2017-05-22 13:40:48 +00:00
aopt.pas
aoptbase.pas + define cpudelayslot: set during compiler compilation for CPUs having branch instructions with delay slot (MIPS, SPARC) 2017-08-20 17:20:38 +00:00
aoptda.pas
aoptobj.pas * fix JumpTargetOp for sparc64 2017-09-09 19:36:50 +00:00
aoptutils.pas
assemble.pas Fix cross-compiler with soft 80bit with external assembler 2017-09-23 20:52:57 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas + TLinkedList.RemoveAll 2017-05-25 12:44:32 +00:00
cfidwarf.pas
cfileutl.pas
cg64f32.pas
cgbase.pas + SPARC64 cpugas unit 2017-06-10 11:24:55 +00:00
cghlcpu.pas
cgobj.pas + let a_load_loc_reg handle also LOC_*MMREGISTER as we have loadmm_*intreg* 2017-10-01 16:13:18 +00:00
cgutils.pas * GetNextReg(), used by 16-bit and 8-bit code generators (i8086 and avr) moved 2017-09-11 14:53:06 +00:00
cmsgs.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
comphook.pas
compiler.pas * ensure that source info is set correctly on Win64 by including i_win for all Windows targets (this is especially important when cross compiling (e.g. Java) as otherwise the utilities won't be found correctly) 2017-08-11 20:27:43 +00:00
compinnr.pas + new Delphi-compatible intrinsic GetTypeKind() which returns the TTypeKind of a type as a constant value (and thus can be optimized away in If- and Case-statements) 2017-08-11 22:12:53 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cstreams.pas
cutils.pas * fix for Mantis #32476: use the correct string to check i2 2017-09-30 11:22:02 +00:00
cwindirs.pp
dbgbase.pas
dbgdwarf.pas
dbgstabs.pas Add explicit '.set nompis16' at front of stabs debug information to solve bug report 32138 2017-07-24 07:31:31 +00:00
dbgstabx.pas
defcmp.pas
defutil.pas + new utility function get_typekind() to retrieve the TTypeKind value of a def 2017-08-11 22:02:22 +00:00
dirparse.pas
elfbase.pas
entfile.pas Move getptruint/putptruint methods to tentfile class to allow use with ppudump 2017-09-17 20:41:51 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc Allow compilation of ppc386 compiler using FPC_SOFT_FPUX80, i.e. soft float 80-bit extended float 2017-09-21 14:36:48 +00:00
fpcp.pas
fpkg.pas
fppu.pas
gendef.pas Add obsolete prefix to cpu_ia64, system_ia64_win64 and system_ia64_embedded, ia64 specfic code has been removed in rev 30836 dated 2015-05-09 2017-08-04 08:54:34 +00:00
globals.pas + add support for $SetPE{OS,SubSys,User}Version directives; Delphi compatible; Note: $SetPEUserVersion takes precedence to $Version 2017-09-30 13:55:29 +00:00
globstat.pas
globtype.pas * fix for Mantis #32355: adjust the meaning of the typehelpers modeswitch for Delphi modes in that it enables the "type helper" syntax as it is in the non-Delphi modes; extending primitive types with record helpers is now always enabled in Delphi modes 2017-09-15 21:09:21 +00:00
hlcg2ll.pas
hlcgobj.pas * avoid unneeded the generation of un-needed shift instructions thlcgobj.in a_load_subsetreg_reg 2017-10-01 16:13:22 +00:00
htypechk.pas * rework the checks for a helper's extended def to be a class so that it can be more easily extended by other objecttypes 2017-08-21 20:48:02 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas
macho.pas
machoutils.pas
Makefile Fix the RTL directory for old OSes that use OS_TARGET only for rtlppulogs rule 2017-09-15 11:24:06 +00:00
Makefile.fpc Fix the RTL directory for old OSes that use OS_TARGET only for rtlppulogs rule 2017-09-15 11:24:06 +00:00
MPWMake
msgidx.inc + add support for $SetPE{OS,SubSys,User}Version directives; Delphi compatible; Note: $SetPEUserVersion takes precedence to $Version 2017-09-30 13:55:29 +00:00
msgtxt.inc + add support for $SetPE{OS,SubSys,User}Version directives; Delphi compatible; Note: $SetPEUserVersion takes precedence to $Version 2017-09-30 13:55:29 +00:00
nadd.pas Disable some code using bestrealrec if macro FPC_SOFT_FPUX80 is defined 2017-09-21 14:39:14 +00:00
nbas.pas
ncal.pas + add support for type helpers to also extend interface types 2017-08-21 20:49:20 +00:00
ncgadd.pas
ncgbas.pas * GetNextReg(), used by 16-bit and 8-bit code generators (i8086 and avr) moved 2017-09-11 14:53:06 +00:00
ncgcal.pas
ncgcnv.pas + support for the different flag registers of sparc 2017-07-03 20:49:05 +00:00
ncgcon.pas
ncgflw.pas
ncghlmat.pas
ncginl.pas + enable support for a processor specific frac function 2017-05-21 11:12:59 +00:00
ncgld.pas
ncgmat.pas
ncgmem.pas + tcgsubscriptnode.pass_generate_code makes use of a_loadmm_reg_intreg to avoid location_force_mem calls 2017-10-01 16:13:20 +00:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * correctly encapsulate the RTTI data for sets to avoid alignment problems with the new SetSize field (fixes compilation on Sparc and basically every other target that requires proper alignment with 64-bit values dictating an 8-Byte alignment) 2017-09-13 21:05:04 +00:00
ncgset.pas * GetNextReg(), used by 16-bit and 8-bit code generators (i8086 and avr) moved 2017-09-11 14:53:06 +00:00
ncgutil.pas * GetNextReg(), used by 16-bit and 8-bit code generators (i8086 and avr) moved 2017-09-11 14:53:06 +00:00
ncgvmt.pas
ncnv.pas
ncon.pas
nflw.pas
ngenutil.pas * ngenutil.tnodeutils.sym_maybe_initialize: don't use "is" operator, but corresponding is_* functions 2017-06-29 18:51:35 +00:00
ngtcon.pas * fix range check error 2017-08-20 15:21:48 +00:00
ninl.pas * also report the dynamic array "overloads" for the Insert() intrinsics 2017-09-27 21:18:04 +00:00
nld.pas
nmat.pas + perform the optimization in tmoddivnode.firstoptimize also for div/mod by 2017-08-17 15:56:20 +00:00
nmem.pas less tab more spaces. no functional change. 2017-09-25 14:52:39 +00:00
nobj.pas
nobjc.pas
node.pas
nopt.pas
nset.pas
nutils.pas * improve node complexity calculations for type nodes 2017-09-06 20:34:56 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas
ogcoff.pas + add support for $SetPE{OS,SubSys,User}Version directives; Delphi compatible; Note: $SetPEUserVersion takes precedence to $Version 2017-09-30 13:55:29 +00:00
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas
omfbase.pas
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas Disable threading feature for arm-palmos (like it is done for m68k-palmos) 2017-09-15 20:27:03 +00:00
optloadmodifystore.pas + enabled the load-modify-store optimization for the double argument version 2017-07-21 13:17:18 +00:00
optloop.pas
opttail.pas
optutils.pas
optvirt.pas
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas * unified internalerror 2017-08-20 15:21:46 +00:00
parser.pas Accept syscall procedure modifier for arm-palmos 2017-09-15 20:27:57 +00:00
pass_1.pas
pass_2.pas
pbase.pas
pcp.pas
pdecl.pas * fix for Mantis #32108: ensure that types are registered once there is no more specialization is going on 2017-09-27 20:47:16 +00:00
pdecobj.pas * fix for Mantis #32355: adjust the meaning of the typehelpers modeswitch for Delphi modes in that it enables the "type helper" syntax as it is in the non-Delphi modes; extending primitive types with record helpers is now always enabled in Delphi modes 2017-09-15 21:09:21 +00:00
pdecsub.pas Handle arm-palmos syscall modifier 2017-09-15 20:29:02 +00:00
pdecvar.pas * ignore is_publishable for properties in interfaces (related to $M+ directive). $M has effect on visibility of default section for classes. Interface has always only public section (fix for problem in tb0631.pp) 2017-09-03 19:05:21 +00:00
pexports.pas
pexpr.pas * check helpertype instead of the extendeddef to judge whether inherited should be allowed or not 2017-09-15 20:52:42 +00:00
pgentype.pas
pgenutil.pas * move code to add a symbol to the current module's generic dummy symbols into a new function pgenutil.add_generic_dummysym() 2017-06-09 14:30:23 +00:00
pinline.pas
pkgutil.pas
pmodules.pas Add _GLOBAL_OFFSET_TABLE_ for sparc64 if -Cg is used 2017-07-18 12:49:26 +00:00
pp.lpi
pp.pas List possible CPU in alphabetical order 2017-08-04 11:14:12 +00:00
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc64.lpi + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
ppcsparc.lpi + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
ppheap.pas
ppu.pas * store the type of the helper that had been encountered during parsing in the objectdef and by extension the PPU 2017-09-13 21:24:06 +00:00
ppx86_64.lpi
procinfo.pas
pstatmnt.pas * reuse more sparc code for sparc64 2017-08-20 17:20:43 +00:00
psub.pas * fix for Mantis #31945: two fixes for nested routines inside generic methods 2017-06-09 15:46:10 +00:00
psystem.pas + new Delphi-compatible intrinsic GetTypeKind() which returns the TTypeKind of a type as a constant value (and thus can be optimized away in If- and Case-statements) 2017-08-11 22:12:53 +00:00
ptconst.pas
ptype.pas * fix for Mantis #32355: adjust the meaning of the typehelpers modeswitch for Delphi modes in that it enables the "type helper" syntax as it is in the non-Delphi modes; extending primitive types with record helpers is now always enabled in Delphi modes 2017-09-15 21:09:21 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas * properly support accepting register parameters of assembler routines in 2017-05-21 20:17:15 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * reuse more sparc code for sparc64 2017-08-20 17:20:43 +00:00
scandir.pas + add support for $SetPE{OS,SubSys,User}Version directives; Delphi compatible; Note: $SetPEUserVersion takes precedence to $Version 2017-09-30 13:55:29 +00:00
scanner.pas Revert revision 36436 from trunk. Final fix for issue #31675. 2017-06-07 21:06:54 +00:00
script.pas
switches.pas
symbase.pas
symconst.pas * correctly encapsulate the RTTI data for sets to avoid alignment problems with the new SetSize field (fixes compilation on Sparc and basically every other target that requires proper alignment with 64-bit values dictating an 8-Byte alignment) 2017-09-13 21:05:04 +00:00
symcreat.pas
symdef.pas * when registering a def also register the syms and defs of its symtables 2017-09-27 20:34:38 +00:00
symsym.pas * avoid range check errors with absolute symbols for cpus where addresses are bigger than the registers 2017-05-28 08:59:53 +00:00
symtable.pas + extend tstoredsymtable with method register_children to register all its symbols and defs 2017-09-27 20:27:05 +00:00
symtype.pas * fix that *annoying* search & replace remnant of incorrect casing 2017-09-27 19:42:47 +00:00
symutil.pas
syscinfo.pas Add arm-palmos target to list supporting po_syscall 2017-09-15 20:25:59 +00:00
systems.inc m68k: changed the internal name of 68k MacOS from system_m68k_mac to system_m68k_macos, so it's consistent with the PowerPC version. suggestion/request by Sven :) 2017-08-22 11:22:15 +00:00
systems.pas m68k-palmos: internal sysinit, and patch target support so it works prc-tools-remix on a modern system 2017-09-16 21:34:55 +00:00
tgobj.pas
tokens.pas
verbose.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
version.pas + support sparc64 as host/source cpu 2017-06-18 21:06:29 +00:00
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