fpc/compiler
2015-02-22 20:53:48 +00:00
..
aarch64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
alpha - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
arm * always pass the architecture to the arm assembler 2015-02-21 21:58:30 +00:00
avr - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
generic - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
html
i386 + cpu capability CPUX86_HAS_CMOV 2015-02-21 20:47:40 +00:00
i8086 + applied remaining patches of Torsten Grundke: adds gather instructions of avx2 2015-02-17 21:43:46 +00:00
ia64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
jvm - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
m68k m68k: support LOC_REFERENCE/LOC_CREFERENCE for floating point instructions where possible 2015-02-15 20:15:21 +00:00
mips - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
msg * update of german message files by Karl-Michael Schindler, resolves #27342 2015-02-01 16:24:23 +00:00
powerpc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
powerpc64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ppcgen - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
sparc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
systems + mips/mipsel libraries need PIC 2015-02-18 13:53:20 +00:00
utils - disable inlining of routines that contain a call to a C-style varargs 2015-01-30 19:31:22 +00:00
vis - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
x86 * CPUs not having CMOV apparently do not support the newly introduced Multibyte NOPs (Agner, Optimizing subroutines in assembly 2015-02-21 20:50:42 +00:00
x86_64 + cpu capability CPUX86_HAS_CMOV 2015-02-21 20:47:40 +00:00
aasmbase.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmdata.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmsym.pas
aasmtai.pas m68k: basic 68881 FPU register save/restore support. probably still needs some work here and there. 2015-02-07 22:13:07 +00:00
aggas.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
agjasmin.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
asmutils.pas
assemble.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
blockutl.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cfidwarf.pas
cfileutl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cg64f32.pas
cgbase.pas
cghlcpu.pas
cgobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cgutils.pas * calc_divconst_magic_unsigned: explicitly limit the shift amount to number of bits of target platform. This happens implicitly only on x86, on other 32-bit targets shifting by more than 31 bits calculates as zero. 2014-06-16 17:05:01 +00:00
cmsgs.pas
comphook.pas
compiler.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
compinnr.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
comprsrc.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas * don't generate debug info for class fields in generic types 2014-06-10 19:05:10 +00:00
dbgdwarf.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabs.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabx.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
defcmp.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
defutil.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
dirparse.pas
elfbase.pas
export.pas
expunix.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
finput.pas * return false, if tdosinputfile.fileopen cannot open a file for reading 2015-02-22 15:52:54 +00:00
fmodule.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
fpccrc.pas
fpcdefs.inc * m68k: Transform 32-bit div/mod nodes into helper calls during pass 1. This is consistent with the way other targets do it, and results in pretty much nicer code. 2014-06-28 13:28:01 +00:00
fppu.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
gendef.pas
globals.pas * use armv4 as default, FPC never generated valid armv3 code 2015-02-22 20:53:48 +00:00
globstat.pas
globtype.pas + optimization setting level4 2015-02-08 11:24:30 +00:00
hlcg2ll.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
hlcgobj.pas * don't directly add something to ref.index in get_bit_reg_ref_sref, as it 2015-01-30 19:31:18 +00:00
htypechk.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
impdef.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
import.pas
ldscript.pas
link.pas do not include outputexedir in linker resname. it causes the path to be double-included when cross-compiling with -st and -FE on Liunuxes. also, be consistent between linking on host and target. 2015-02-18 14:09:15 +00:00
macho.pas
machoutils.pas
Makefile * avoid mixed revision information 1:realrevision in revision.inc for fpcbuild checkout 2015-02-12 00:05:45 +00:00
Makefile.fpc * avoid mixed revision information 1:realrevision in revision.inc for fpcbuild checkout 2015-02-12 00:05:45 +00:00
MPWMake
msgidx.inc * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
msgtxt.inc * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
nadd.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nbas.pas * remove statements with only a nothing node when they are the only children of a block 2015-02-04 21:19:40 +00:00
ncal.pas * clean usercode_entry flag from outer block when copying a subroutine node tree for inlining, enables sometimes better inlining 2015-02-04 21:18:04 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncgcnv.pas * give an internal error in second_int_to_bool() if left.expectloc was not 2015-01-30 19:31:31 +00:00
ncgcon.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgflw.pas
ncginl.pas * fixed length(ansistring/widestring/dynarray) in i8086 far data memory models 2014-04-27 02:26:35 +00:00
ncgld.pas Fix for Mantis #26177. Use the correct value for the method data when using a method pointer of a type or record helper. 2014-07-05 08:54:10 +00:00
ncgmat.pas * fixed tcgshlshrnode.pass_generate_code for 64 bit targets 2015-01-30 19:31:15 +00:00
ncgmem.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgset.pas + 8-bit ALU support in tcgcasenode.genlinearcmplist 2014-04-26 12:41:58 +00:00
ncgutil.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgvmt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncnv.pas * allow multiple passes on as nodes 2015-02-17 21:14:43 +00:00
ncon.pas
nflw.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ngenutil.pas * align compiler generated constants according to constant aligment settings 2015-02-08 11:23:01 +00:00
ngtcon.pas * read array initializations in generic subroutines without fixed limits, resolves #25602 2015-02-01 17:09:00 +00:00
ninl.pas * properly firstpass nodes when inc(...) is converted into ...:=...+x, resolves #27471 2015-02-17 21:14:45 +00:00
nld.pas
nmat.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nmem.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nobj.pas * TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far 2014-05-03 17:05:50 +00:00
nobjc.pas
node.pas
nopt.pas
nset.pas
nstate.pas
nutils.pas * properly firstpass nodes when inc(...) is converted into ...:=...+x, resolves #27471 2015-02-17 21:14:45 +00:00
objcdef.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
objcgutl.pas
objcutil.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
ogbase.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ogcoff.pas + Missing part of internal ARM assembler, Mantis #26588. I'm not setting it as default for arm-wince yet, because testing reveals several points in generic code that need adjustments. 2015-01-30 22:45:05 +00:00
ogelf.pas + ELF linker: support writing DT_PREINIT_ARRAY/DT_INIT_ARRAY/DT_FINI_ARRAY dynamic tags. Still misses a lot of sanity checks, and does not sort entries. 2015-01-26 20:34:16 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas
optconstprop.pas
optcse.pas + apply cse to more inline nodes 2014-04-27 14:28:17 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas * handle raise nodes in dfa on jvm, resolves #27416 2015-02-07 18:11:02 +00:00
options.pas * really set alignment as intended when -Os is passed 2015-02-08 11:22:17 +00:00
optloop.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
opttail.pas
optutils.pas
optvirt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
owar.pas
owbase.pas
parabase.pas
paramgr.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
parser.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pass_1.pas
pass_2.pas
pbase.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
pdecl.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
pdecobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pdecsub.pas Specialize the correct generic if it has the same name as another generic that is located at another place of the type hierarchy. 2015-02-20 16:28:44 +00:00
pdecvar.pas * check for read/write after a newly declared property (mantis #26011) 2014-06-15 10:59:47 +00:00
pexports.pas
pexpr.pas * fix compilation errors with -O2 due to dfa based warnings 2015-02-21 10:09:37 +00:00
pgenutil.pas Specialize the correct generic if it has the same name as another generic that is located at another place of the type hierarchy. 2015-02-20 16:28:44 +00:00
pinline.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pmodules.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
pp.lpi + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
pp.pas
pparautl.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
ppc68k.lpi
ppc8086.lpi + generate the stack segment for i8086 far data memory models from within fpc 2014-05-27 23:29:50 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ppx86_64.lpi
procinfo.pas
pstatmnt.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
psub.pas * do not warn about internally generated parameters, resolves #25914 2015-02-06 20:44:24 +00:00
psystem.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ptconst.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ptype.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
raatt.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
rabase.pas
rasm.pas
rautils.pas * fix possible range check errors, resolves #27461 2015-02-17 21:14:47 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
scandir.pas + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
scanner.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
script.pas
switches.pas
symbase.pas
symconst.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
symcreat.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
symdef.pas + parameters of nested procedure variable parameters are taken into account during name mangling, resolves #27515 2015-02-22 09:16:20 +00:00
symnot.pas
symsym.pas * limit initialization to register variables which really need to be initialized 2015-01-27 21:51:29 +00:00
symtable.pas Avoid warning for function not set if noreturn modifier is used 2015-02-15 18:01:22 +00:00
symtype.pas * support for raising the visibility of inherited properties on the JVM 2014-06-12 11:08:44 +00:00
symutil.pas
systems.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
systems.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
tgobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
tokens.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
verbose.pas
version.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
widestr.pas
wpo.pas
wpobase.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
wpoinfo.pas * call "message" rather than "cgmessage" when throwing fatal errors, because 2014-07-18 09:09:21 +00:00

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