fpc/compiler
Jonas Maebe aee5380ae0 * merged trunk up to r20882
o support for the new codepage-aware ansistrings in the jvm branch
   o empty ansistrings are now always represented by a nil pointer rather than
     by an empty string, because an empty string also has a code page which
     can confuse code (although this will make ansistrings harder to use
     in Java code)
   o more string helpers code shared between the general and jvm rtl
   o support for indexbyte/word in the jvm rtl (warning: first parameter
     is an open array rather than an untyped parameter there, so
     indexchar(pcharvar^,10,0) will be equivalent to
     indexchar[pcharvar^],10,0) there, which is different from what is
     intended; changing it to an untyped parameter wouldn't help though)
   o default() support is not yet complete
   o calling fpcres is currently broken due to limitations in
     sysutils.executeprocess() regarding handling unix quoting and
     the compiler using the same command lines for scripts and directly
     calling external programs
   o compiling the Java compiler currently requires adding ALLOW_WARNINGS=1
     to the make command line

git-svn-id: branches/jvmbackend@20887 -
2012-04-15 15:54:10 +00:00
..
alpha * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
arm * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
avr + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
generic * Remove triple sources 2011-07-08 15:37:23 +00:00
html
i386 * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ia64 Fix ia64 compilation problems 2012-01-20 14:17:56 +00:00
jvm * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
m68k * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
mips * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
msg * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
powerpc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
powerpc64 * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ppcgen * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
sparc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
systems * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
utils * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
vis - removed no more used constants 2011-08-13 20:54:01 +00:00
x86 * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
x86_64 * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
aasmbase.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
aasmdata.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
aasmsym.pas
aasmtai.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
aggas.pas * gcc does add a .file statement for AIX (but using different code than for 2012-04-11 18:06:57 +00:00
agjasmin.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
aopt.pas + first version of ldr instruction scheduler on arm 2012-03-11 19:10:58 +00:00
aoptbase.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptcs.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptda.pas
aoptobj.pas * fix OpsEqual 2012-04-14 20:08:56 +00:00
asmutils.pas compiler: move ansistring codepage number replacement code from the asm generator to one level up. output both 0 and CP_NONE ansistring constants as constants with codepage 0. codepage 0 means CP_ACP and it will be properly understood of RTL routines while codepage CP_NONE means no codepage. For delphi unicode mode output them in compiler codepage as before. 2011-10-11 07:22:49 +00:00
assemble.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas * make compiler compilable with 2.4.4 rtl 2011-09-28 18:54:32 +00:00
cclasses.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
cfidwarf.pas
cfileutl.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
cg64f32.pas + support for range checking calculations with hlcgobj 2011-08-20 08:32:31 +00:00
cgbase.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
cgobj.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
cgutils.pas * generalized handling of pointers to non-implicit pointer types: 2011-08-23 17:44:55 +00:00
cmsgs.pas compiler: 2011-11-02 09:20:59 +00:00
comphook.pas Display source position with timestamps also 2012-03-28 14:08:01 +00:00
compiler.pas + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
compinnr.inc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
comprsrc.pas + "raw" resource support for the JVM target. The "raw" means that no 2011-08-20 08:34:57 +00:00
constexp.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
COPYING.txt
cp437.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp850.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp866.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp1251.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp1252.pp * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_1.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_5.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cpid.pas merge r14347 from cpstrnew branch by florian: 2011-09-17 12:00:06 +00:00
crefs.pas
cresstr.pas * on AIX, you also can't have a label without data coming at the end of the 2012-04-11 18:02:18 +00:00
cstreams.pas * typo fixed 2011-12-31 16:25:19 +00:00
cutils.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
cwindirs.pp
dbgbase.pas * Avoid having current_debuginfo pointing to freed memory 2012-03-21 10:17:43 +00:00
dbgdwarf.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
dbgstabs.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
dbgstabx.pas + stabx support for AIX, which is a variant of stabs. Note that we only 2012-04-11 18:06:38 +00:00
defcmp.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
defutil.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
export.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
expunix.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
finput.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
fmodule.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
fpccrc.pas
fpcdefs.inc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
fppu.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
gendef.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
globals.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
globtype.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
hlcg2ll.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
hlcgobj.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
htypechk.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
impdef.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
import.pas
link.pas * ignore tf_no_backquote_support in source_info.flags in case we will link 2012-04-11 18:04:36 +00:00
macho.pas
machoutils.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
Makefile * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
Makefile.fpc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
MPWMake
msgidx.inc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
msgtxt.inc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nadd.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nbas.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncal.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgadd.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgbas.pas + ttgobj.gethltemptyped() routine for allocating managed types with high level 2011-08-20 08:24:07 +00:00
ncgcal.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgcnv.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgcon.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgflw.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncginl.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgld.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgmat.pas + support for unaryminus for the JVM target (integer via generic code, float 2011-08-20 08:06:05 +00:00
ncgmem.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncgnstld.pas * copy the implicit pointer rather than the contents of var/out/constref 2011-11-18 21:09:38 +00:00
ncgnstmm.pas * fixed loading the nested framepointer when calling another nested 2011-09-20 22:22:26 +00:00
ncgobjc.pas compiler: 2011-09-28 01:18:43 +00:00
ncgopt.pas + gethltemp() to allocate a temp specifying full type information even 2011-08-20 07:54:04 +00:00
ncgrtti.pas * don't try to write rtti for fields in Pascal records/classes/objects/... 2011-12-17 11:43:13 +00:00
ncgset.pas * use unsigned type for unsigned comparison 2011-08-20 08:30:26 +00:00
ncgutil.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncnv.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ncon.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nflw.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ngenutil.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ngtcon.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ninl.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nld.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nmat.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nmem.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nobj.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nobjc.pas
node.pas * part of r20140, forgot to commit 2012-01-21 21:16:47 +00:00
nopt.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
nset.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nstate.pas
nutils.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
objcdef.pas
objcgutl.pas * objcprotocol symbols have to be weak in the non-fragile abi to prevent 2011-12-17 12:43:42 +00:00
objcutil.pas * don't generate a classClass call for objc loadvmtaddrnodes generated 2012-03-29 20:54:47 +00:00
ogbase.pas * don't pass property as var-parameter to val() 2012-01-21 16:54:57 +00:00
ogcoff.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogelf.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
oglx.pas
ogmacho.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogmap.pas
ognlm.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
optbase.pas
optcse.pas * Avoid pointer typecast warning 2011-06-29 09:54:46 +00:00
optdead.pas + support for AIX nm output 2012-04-11 18:06:13 +00:00
optdfa.pas * handle for-loops correctly if the limits contain the counter variable 2011-12-30 10:54:08 +00:00
options.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
optloop.pas
opttail.pas * factored load node flags out of node flags to gain space 2011-10-30 15:14:21 +00:00
optutils.pas
optvirt.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
owar.pas
owbase.pas * write error code if an object file cannot be created 2012-01-15 10:59:10 +00:00
parabase.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
paramgr.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
parser.pas compiler: remove unused variable 2011-09-20 13:44:53 +00:00
pass_1.pas
pass_2.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pbase.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pdecl.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pdecobj.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pdecsub.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pdecvar.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pexports.pas * also show the valid bounds in most cases when signalling a range check 2012-03-10 21:53:36 +00:00
pexpr.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pgenutil.pas * pgenutil.pas, generate_specialization: 2012-02-04 16:26:47 +00:00
pinline.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pmodules.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pp.lpi * proper title value 2012-04-04 19:42:31 +00:00
pp.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pparautl.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * update of project file 2012-03-25 14:23:57 +00:00
ppcavr.lpi * version update 2011-09-04 18:53:12 +00:00
ppcmips.lpi * fix some mips compiler issues, system unit compilation is getting forward 2012-02-04 22:53:52 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ppx86_64.lpi * proper title value 2012-04-04 19:42:31 +00:00
procinfo.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
pstatmnt.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
psub.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
psystem.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ptconst.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
ptype.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
raatt.pas + New virtual method TATTReader.HandleDollar, useful for MIPS reader 2012-02-02 23:45:22 +00:00
rabase.pas
rasm.pas
rautils.pas * Define MAX_OPER_X to avoid warnings about array index past maximum value 2011-11-03 10:12:31 +00:00
README.txt
regvars.pas
rescmn.pas + fcl-res support for xcoff/aix 2012-04-11 18:06:33 +00:00
rgbase.pas
rgobj.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
scandir.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
scanner.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
script.pas + support for generating multiple script files (.sh/.bat/.cmd/...) with link 2012-04-11 18:07:01 +00:00
switches.pas * the default string type for the JVM target is no longer automatically 2011-08-20 08:35:47 +00:00
symbase.pas + TSymtablestack.getcopyuntil() method that creates a copy of a 2011-08-20 08:12:29 +00:00
symconst.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
symcreat.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
symdef.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
symnot.pas
symsym.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
symtable.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
symtype.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
symutil.pas
systems.inc * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
systems.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
tgobj.pas + ttgobj.gethltemptyped() routine for allocating managed types with high level 2011-08-20 08:24:07 +00:00
tokens.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
verbose.pas * Fix ChangeMessageVerbosity by adingd a recordpendingmessagestate call 2011-11-02 22:08:14 +00:00
version.pas Add mips and mipsel source_cpu_string 2012-02-13 00:12:15 +00:00
widestr.pas * merged trunk up to r20882 2012-04-15 15:54:10 +00:00
wpo.pas
wpobase.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
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