fpc/compiler
Jonas Maebe 146e3bcb9e * synchronised with trunk till r29513
git-svn-id: branches/blocks@29516 -
2015-01-21 23:28:34 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
i8086 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
mips - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
msg * synchronised with trunk till r29513 2015-01-21 23:28:34 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
utils * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
vis - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
x86 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
x86_64 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +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
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 * don't hard-code size of linebuf entries 2014-05-15 09:08:05 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
globstat.pas
globtype.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
hlcg2ll.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
hlcgobj.pas
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
macho.pas
machoutils.pas
Makefile - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
Makefile.fpc - reverted partial commit of merge 2015-01-21 23:24:37 +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 * changed the "laststatement" parameter of internalstatements() from "var" 2014-07-18 09:09:16 +00:00
ncal.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncgcnv.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgcon.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgflw.pas
ncginl.pas
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 - reverted partial commit of merge 2015-01-21 23:24:37 +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
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 * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncon.pas
nflw.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ngenutil.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ngtcon.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ninl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ogelf.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
options.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 Fix for Mantis #26278. 2014-06-13 21:36:55 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pgenutil.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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
psub.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
raatt.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
rabase.pas
rasm.pas
rautils.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
symnot.pas
symsym.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
symtable.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +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