fpc/compiler
Jonas Maebe 0ee702b3a2 * tprocdef.mangledname now gets an extra boolean parameter indicating
whether the mangled name is for defining a symbol, or for referencing
    it later (e.g. for a call or load of its address). The reason is that
    on the JVM both cases are different.
  + jvmdef unit to encode types according to the JVM rules
  + tprocdef.jvmmangledname() to encode a procdef's JVM mangled name
    (the common part of defining/referencing it; tprocdef.mangledname
     afterwards adorns it as required)

git-svn-id: branches/jvmbackend@18288 -
2011-08-20 07:22:00 +00:00
..
alpha - removed no more used constants 2011-08-13 20:54:01 +00:00
arm * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
avr - removed no more used constants 2011-08-13 20:54:01 +00:00
generic * Remove triple sources 2011-07-08 15:37:23 +00:00
html
i386 * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ia64 * enable node cse for all cpus as level 2 optimization 2010-01-17 12:28:28 +00:00
jvm * basic jvm "cpu" info file (no special cpu or fpu types, no 2011-08-20 07:21:41 +00:00
m68k * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
mips * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
msg * Check that a single interface is only delegated to a single property within a class. 2011-08-12 14:42:30 +00:00
powerpc * create/destroy also the high level code generator for all architectures, 2011-08-20 07:21:16 +00:00
powerpc64 * create/destroy also the high level code generator for all architectures, 2011-08-20 07:21:16 +00:00
ppcgen * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
sparc * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
systems * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
utils + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
vis - removed no more used constants 2011-08-13 20:54:01 +00:00
x86 * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
x86_64 * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
aasmbase.pas * merge user sections support branch 2011-04-10 18:08:59 +00:00
aasmdata.pas * Optimized pooling of floating point and large set constants using hash tables. 2011-06-19 21:41:41 +00:00
aasmsym.pas
aasmtai.pas * patch by Jeppe Johansen to support jumptable generation for case nodes on arm/thumb-2, resolves #19502 2011-08-16 22:39:00 +00:00
aggas.pas * patch by Jeppe Johansen to support jumptable generation for case nodes on arm/thumb-2, resolves #19502 2011-08-16 22:39:00 +00:00
aopt.pas * fixed range errors in label bookkeeping that caused too much memory to be 2009-12-23 21:08:05 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
aoptobj.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
asmutils.pas o patch by Sergei Gorelkin which basically resolves #14308 (still misses some tests): 2009-12-13 10:03:30 +00:00
assemble.pas * Don't use hardcoded value for maxoutputlists 2011-06-13 07:11:56 +00:00
browcol.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.pas * fixed (harmless) range check errors 2011-06-02 20:07:06 +00:00
cfidwarf.pas * fix error in cfidwarf rev 16062 for non-windows systems 2010-09-30 07:41:19 +00:00
cfileutl.pas * fix potential range check error in cfileutl, should resolve #19405 2011-06-04 22:14:55 +00:00
cg64f32.pas * renamed a_param_* to a_load_*_cgpara 2010-05-22 09:07:21 +00:00
cgbase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cgobj.pas * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
cgutils.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cmsgs.pas Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
comphook.pas * catch EOSError, EIOError and IOutOfMemory exceptions inside the compiler 2011-08-07 09:18:07 +00:00
compiler.pas * catch EOSError, EIOError and IOutOfMemory exceptions inside the compiler 2011-08-07 09:18:07 +00:00
compinnr.inc * constant evaluation of ror/rol if they are internally handled, resolves #6300 2011-06-23 20:54:08 +00:00
comprsrc.pas + when compiling for Darwin/ARM, pass the subarchitecture to the linker. 2011-08-02 20:41:39 +00:00
constexp.pas * Use extended for bestreal type if GENERIC_CPU is defined 2011-07-08 15:36:29 +00:00
COPYING.txt
cp437.pas
cp850.pas
cp866.pas
cp1251.pas
cp8859_1.pas
cp8859_5.pas
crefs.pas * more properties fixed 2009-11-12 18:11:10 +00:00
cresstr.pas o patch by Sergei Gorelkin which basically resolves #14308 (still misses some tests): 2009-12-13 10:03:30 +00:00
cstreams.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
cutils.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
cwindirs.pp + added cwindirs for the time being to the compiler dir till a release with windirs in the rtl is released 2011-03-19 22:48:56 +00:00
dbgbase.pas compiler: generate debug info for record methods: 2010-12-16 06:12:05 +00:00
dbgdwarf.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
dbgstabs.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
defcmp.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
defutil.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
export.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
expunix.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
finput.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
fmodule.pas + Use DLL name in assembler labels used to import DLL functions/variables 2011-06-23 11:38:57 +00:00
fpccrc.pas
fpcdefs.inc * converted the parts of tcgloadnode.pass_generate_code() and 2011-08-20 07:21:31 +00:00
fppu.pas + Use DLL name in assembler labels used to import DLL functions/variables 2011-06-23 11:38:57 +00:00
gendef.pas * enabled version and description directive for all windows 2009-07-25 22:06:37 +00:00
globals.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
globtype.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
hlcg2ll.pas + hlcgobj: high level code generator class. It has basically the same 2011-08-20 07:21:09 +00:00
hlcgobj.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
htypechk.pas * fixed calling inherited message handlers after r18162 2011-08-11 20:08:43 +00:00
impdef.pas
import.pas
jvmdef.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
link.pas Add removal of braces for parameters in linker script 2011-07-01 14:28:18 +00:00
macho.pas * fixed comments for some comments, they were offset by one line (patch by 2010-12-24 15:58:41 +00:00
machoutils.pas * initial version of internal Mach-O/i386 assembler by Dmitry Boyarintsev 2010-01-12 19:52:55 +00:00
Makefile + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
Makefile.fpc * Trunk version to 2.7.1 2011-08-03 13:59:33 +00:00
MPWMake
msgidx.inc * Check that a single interface is only delegated to a single property within a class. 2011-08-12 14:42:30 +00:00
msgtxt.inc * Check that a single interface is only delegated to a single property within a class. 2011-08-12 14:42:30 +00:00
nadd.pas * only transform multiplication nodes to sqr, not any kind of addnode 2011-08-18 12:47:41 +00:00
nbas.pas * fixed getcopy order for ttempcreatenode in case it has tempinitcode 2011-07-18 00:38:47 +00:00
ncal.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ncgadd.pas * converted all non-x86-specific and non-32bit-specific code to use hlcgobj 2011-08-20 07:21:21 +00:00
ncgbas.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
ncgcal.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ncgcnv.pas * fix building on powerpc/powerpc64/mips/mipsel 2011-04-20 09:02:29 +00:00
ncgcon.pas * Float constants must be pooled using their the actual type, not the mapped type of assembler instruction. Otherwise e.g. extended may be mixed up with cextended, because both are mapped to ait_real_80bit. 2011-06-22 02:57:07 +00:00
ncgflw.pas * set line info markers properly, resolves #17803 2011-05-16 15:15:35 +00:00
ncginl.pas * constant evaluation of ror/rol if they are internally handled, resolves #6300 2011-06-23 20:54:08 +00:00
ncgld.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ncgmat.pas + implementation of shifting operations for avr 2011-03-09 19:48:01 +00:00
ncgmem.pas * tcgvecnode, simplified range checking for strings. Removed FPC_*STR_CHECKZERO helpers, and changed FPC_*STR_CHECKRANGE so they accept the original left node. Now strings are checked the same way as dynamic arrays, and the compiler part is considerably simpler. 2011-03-13 15:52:02 +00:00
ncgobjc.pas compiler: cleanup - remove unused variables 2009-12-29 06:14:52 +00:00
ncgopt.pas
ncgrtti.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ncgset.pas * fixed in-code for big endian systems and smallsets < 4 bytes 2009-11-17 22:05:12 +00:00
ncgutil.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ncnv.pas * when removing unnecessary 64 bit widenings, modify both the resultdef 2011-08-11 16:05:11 +00:00
ncon.pas * Improvements to Dispatch call handling: 2010-11-18 16:17:50 +00:00
nflw.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
ninl.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nld.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
nmat.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nmem.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
nobj.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
nobjc.pas * do not crash but give a fatal error when using Objective-Pascal code 2010-04-24 12:49:16 +00:00
node.pas compiler: add unary plus node, search for unary plus operator if a type cannot be handled by compiler, increase ppu version because of node types change 2010-12-26 12:19:28 +00:00
nopt.pas
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 compiler: handle dispinterfaces the same way as com interfaces because they are IDispatch descendants: increment/decrement they references in assignments and parameters passing by _AddRef, _Release 2011-01-13 03:38:45 +00:00
objcdef.pas Commit of a completely restructured helper implementation. Instead of changing objectdefs with odt_classhelper to odt_class, they'll have the odt_helper type assigned to and this will be kept. This also implies that the parent of a helper is its true parent while the extended type is set to a field in tobjectdef (extendeddef). 2011-02-20 11:41:55 +00:00
objcgutl.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
objcutil.pas * renamed objcdef.addencodedtype to objcaddencodedtype for consistency 2010-12-19 19:37:47 +00:00
ogbase.pas * Excluded oso_executable from attributes of user sections. User sections may currently be specified only for variables and typed consts, which are not executable. 2011-07-27 14:10:22 +00:00
ogcoff.pas * Another attempt to align section raw data size in COFF headers. Without this, image modification WinAPIs like BeginUpdateResource/EndUpdateResource typically corrupt the image. Resolves #16852 (at least partially). 2011-08-11 16:42:24 +00:00
ogelf.pas * Reverted r17556 and replaced it with more generic handling of 'rela'-styled relocations. Resolves #19416. 2011-05-27 18:19:08 +00:00
oglx.pas
ogmacho.pas + user section type 2011-03-20 15:42:28 +00:00
ogmap.pas
ognlm.pas Avoid line > 255 chars and range check error on THandle type 2011-06-27 20:58:02 +00:00
optbase.pas * handle short boolean evaluation correctly when doing node cse 2010-01-17 10:08:37 +00:00
optcse.pas * Avoid pointer typecast warning 2011-06-29 09:54:46 +00:00
optdead.pas
optdfa.pas * dfa fixes by Sergei Gorelkin, resolve #15402 2009-12-20 21:02:11 +00:00
options.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
optloop.pas * handle unrolling of for ... downto ... correctly, resolves #15668 2010-02-10 21:08:54 +00:00
opttail.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
optutils.pas
optvirt.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
owar.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
owbase.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
parabase.pas + hlcgobj: high level code generator class. It has basically the same 2011-08-20 07:21:09 +00:00
paramgr.pas * improvement to r16050 for non-fixed stack targets: they never have to use 2011-03-18 18:32:02 +00:00
parser.pas Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
pass_1.pas * when simplifying ordinal expressions during inlining, keep the resultdef 2010-10-07 15:08:52 +00:00
pass_2.pas compiler: add unary plus node, search for unary plus operator if a type cannot be handled by compiler, increase ppu version because of node types change 2010-12-26 12:19:28 +00:00
pbase.pas compiler: change check for current in try_consume_unitsym - don't use current_unit in check because specialize code does not replace this variable (fixes bug #0015591) 2010-12-01 08:18:51 +00:00
pdecl.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
pdecobj.pas * store the current field alignment of tobjectdefs that use C_alignment, 2011-08-06 13:11:23 +00:00
pdecsub.pas * Check that a single interface is only delegated to a single property within a class. 2011-08-12 14:42:30 +00:00
pdecvar.pas * Check that a single interface is only delegated to a single property within a class. 2011-08-12 14:42:30 +00:00
pexports.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
pexpr.pas + ttypesym.prettyname 2011-08-17 11:10:00 +00:00
pinline.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
pmodules.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
pp.lpi * version update 2011-08-17 10:57:32 +00:00
pp.pas
ppc68k.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcavr.lpi Rebase to revision 17096 2011-03-09 16:29:47 +00:00
ppcmipsel.lpi Adds mipsel lazarus project 2009-12-07 13:04:05 +00:00
ppcppc.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcsparc.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppheap.pas
ppu.pas * avoid range check errors for empty ansistrings written/read from ppus 2011-08-17 19:01:03 +00:00
ppx86_64.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
procinfo.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
pstatmnt.pas * merges recent class helper fixes by Sven Barth 2011-06-30 18:54:46 +00:00
psub.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
psystem.pas * fixed make all 2011-06-26 20:54:39 +00:00
ptconst.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
ptype.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
raatt.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
rabase.pas
rasm.pas
rautils.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
scandir.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
scanner.pas * fixed copy/paste error that didn't disable default inline support when 2011-08-18 18:12:09 +00:00
script.pas
switches.pas * Fix double WARN infinite loop 2011-06-29 09:52:03 +00:00
symbase.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
symconst.pas + odt_javaclass, odt_interfacejava objectdef types 2011-08-20 07:21:46 +00:00
symdef.pas * tprocdef.mangledname now gets an extra boolean parameter indicating 2011-08-20 07:22:00 +00:00
symnot.pas
symsym.pas + ttypesym.prettyname 2011-08-17 11:10:00 +00:00
symtable.pas * fixed wrong class cast in r18226 2011-08-18 11:53:02 +00:00
symtype.pas + ttypesym.prettyname 2011-08-17 11:10:00 +00:00
symutil.pas
systems.inc Added forgotten include file 2011-06-20 14:57:34 +00:00
systems.pas + add avr-embedded to systems_embedded 2011-07-17 20:44:43 +00:00
tgobj.pas + support for tt_regallocator/tt_freeregallocator temps; these will be used 2011-08-20 07:21:36 +00:00
tokens.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
verbose.pas Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
version.pas * Trunk version to 2.7.1 2011-08-03 13:59:33 +00:00
widestr.pas * fixed storing/loading widestring constant nodes into/from ppu files 2010-03-14 13:27:00 +00:00
wpo.pas
wpobase.pas - removed tstoreddef.reset() and overrides, and the associated 2010-06-30 19:00:40 +00:00
wpoinfo.pas * also recompile a unit if class/object definitions in indirectly used 2009-12-30 14:03:31 +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