fpc/compiler
Jonas Maebe c9e6bc8d49 + support for building jvm-java compiler/rtl via top-level
make CPU_TARGET=jvm OS_TARGET=java all
    ("make install" does not yet fully work: the classes under
     rtl/units/jvm-java/org/freepascal/rtl aren't installed yet)

git-svn-id: branches/jvmbackend@19747 -
2011-12-04 15:33:55 +00:00
..
alpha - removed no more used constants 2011-08-13 20:54:01 +00:00
arm - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +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 - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
ia64
jvm * generate JVM bytecode that passes the stringent requirements of the Dalvik 2011-12-04 14:48:54 +00:00
m68k - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
mips - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
msg + generic infrastructure for target-specific switches 2011-11-14 22:57:41 +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 - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
sparc - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
systems + "raw" resource support for the JVM target. The "raw" means that no 2011-08-20 08:34:57 +00:00
utils + support for building jvm-java compiler/rtl via top-level 2011-12-04 15:33:55 +00:00
vis - removed no more used constants 2011-08-13 20:54:01 +00:00
x86 * re-enabled tx86addnode.second_addsmallset() after its disabling was 2011-08-20 21:02:55 +00:00
x86_64 - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
aasmbase.pas + symansistr conditional define that, when activated, makes the symbol/ 2011-08-20 08:13:50 +00:00
aasmdata.pas + symansistr conditional define that, when activated, makes the symbol/ 2011-08-20 08:13:50 +00:00
aasmsym.pas
aasmtai.pas * fixed all known memory leaks in the code added for the JVM port 2011-09-26 19:31:34 +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
agjasmin.pas * don't mark nested interfaces as "static", only do so for classes 2011-10-28 21:19:16 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
asmutils.pas
assemble.pas * fixed buffer overrun in TExternalAssembler.AsmWrite(ansistring) in case the 2011-11-14 22:57:34 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas + symansistr conditional define that, when activated, makes the symbol/ 2011-08-20 08:13:50 +00:00
cfidwarf.pas
cfileutl.pas * factored searching the exe directories from FindExe() into 2011-08-20 07:38:21 +00:00
cg64f32.pas + support for range checking calculations with hlcgobj 2011-08-20 08:32:31 +00:00
cgbase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cgobj.pas + support for range checking calculations with hlcgobj 2011-08-20 08:32:31 +00:00
cgutils.pas * generalized handling of pointers to non-implicit pointer types: 2011-08-23 17:44:55 +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 + support for formal var/out parameters on the JVM target: 2011-08-20 08:23:33 +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 * 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
cresstr.pas
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 + generate java.lang.Enum descendant classes for Pascal enum types 2011-08-20 08:15:28 +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
dbgdwarf.pas * renamed cchartype to cansichartype 2011-08-20 08:35:24 +00:00
dbgstabs.pas * renamed cchartype to cansichartype 2011-08-20 08:35:24 +00:00
defcmp.pas * always allow typecasts between enums and pointers/classes on the JVM target 2011-08-23 15:25:47 +00:00
defutil.pas * moved de2regtyp() from defutil to hlcgobj, so it can be overridden 2011-08-20 08:00:31 +00:00
export.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
expunix.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
finput.pas * fixed memory leaks when ending a macro 2011-08-20 08:14:00 +00:00
fmodule.pas + getsingletonarraydef() function to get a (reused if possible) def for 2011-08-20 08:34:41 +00:00
fpccrc.pas
fpcdefs.inc + symansistr conditional define that, when activated, makes the symbol/ 2011-08-20 08:13:50 +00:00
fppu.pas + support for {$namespace x.y.z} directive to specify the namespace 2011-08-20 07:59:26 +00:00
gendef.pas + symansistr conditional define that, when activated, makes the symbol/ 2011-08-20 08:13:50 +00:00
globals.pas + generic infrastructure for target-specific switches 2011-11-14 22:57:41 +00:00
globtype.pas + generic infrastructure for target-specific switches 2011-11-14 22:57:41 +00:00
hlcg2ll.pas * handle records returned in floating point registers in the high->low level 2011-08-23 15:25:01 +00:00
hlcgobj.pas * support g_call_system_proc() inside the system unit for routines whose 2011-08-28 19:21:29 +00:00
htypechk.pas * ignore methods that are added for the purpose of the JVM (inherited 2011-08-20 08:32:47 +00:00
impdef.pas
import.pas
link.pas Add removal of braces for parameters in linker script 2011-07-01 14:28:18 +00:00
macho.pas
machoutils.pas
Makefile + support for building jvm-java compiler/rtl via top-level 2011-12-04 15:33:55 +00:00
Makefile.fpc + support for building jvm-java compiler/rtl via top-level 2011-12-04 15:33:55 +00:00
MPWMake
msgidx.inc + generic infrastructure for target-specific switches 2011-11-14 22:57:41 +00:00
msgtxt.inc + generic infrastructure for target-specific switches 2011-11-14 22:57:41 +00:00
nadd.pas * preparations to use generic string concatentation/comparison code for JVM 2011-08-29 22:59:19 +00:00
nbas.pas * fixed all known memory leaks in the code added for the JVM port 2011-09-26 19:31:34 +00:00
ncal.pas * fixed all known memory leaks in the code added for the JVM port 2011-09-26 19:31:34 +00:00
ncgadd.pas * reorder processing of left/right for add nodes somewhat to make 2011-08-20 07:48:42 +00:00
ncgbas.pas + ttgobj.gethltemptyped() routine for allocating managed types with high level 2011-08-20 08:24:07 +00:00
ncgcal.pas * sign extend all byte/ansichar/word parameters before passing them 2011-08-30 23:34:12 +00:00
ncgcnv.pas * converted second_array_to_pointer() to thlcg 2011-08-20 08:34:51 +00:00
ncgcon.pas + full support for sets on the JVM target 2011-08-20 08:22:22 +00:00
ncgflw.pas + try/except and try/finally support for JVM target: 2011-08-20 07:55:21 +00:00
ncginl.pas * removed all remaining nounsupported ifdefs (except for the one about 2011-08-20 08:34:26 +00:00
ncgld.pas * generate JVM bytecode that passes the stringent requirements of the Dalvik 2011-12-04 14:48:54 +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 + support for nested procedures for the JVM target 2011-08-20 08:12:59 +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
ncgopt.pas + gethltemp() to allocate a temp specifying full type information even 2011-08-20 07:54:04 +00:00
ncgrtti.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
ncgset.pas * use unsigned type for unsigned comparison 2011-08-20 08:30:26 +00:00
ncgutil.pas * moved gen_entry_code/gen_exit_code from ncgutil to hlcgobj, 2011-08-20 08:05:33 +00:00
ncnv.pas * renamed fpc_WChar_To_ShortStr() compilerproc to fpc_UChar_To_ShortStr() for 2011-08-28 19:22:15 +00:00
ncon.pas * the default string type for the JVM target is no longer automatically 2011-08-20 08:35:47 +00:00
nflw.pas + try/except and try/finally support for JVM target: 2011-08-20 07:55:21 +00:00
ngenutil.pas * when the user calls initialize(), force initialization to happen on the 2011-08-20 08:23:16 +00:00
ngtcon.pas * typecast the indices generated for array constants in the node-based 2011-08-20 08:31:41 +00:00
ninl.pas * replace assigned(dynarray) and dynarray=/<>nil with length(dynarray)=/<>0 2011-09-19 19:59:32 +00:00
nld.pas * fixed assigning ansi/unicodestrings to shortstrings on the JVM target 2011-08-28 19:21:46 +00:00
nmat.pas + support for qword div/mod via helper (the JVM only supports signed 2011-08-20 08:07:02 +00:00
nmem.pas * enable support for creating loadvmtaddr nodes for Java interfaces, because 2011-12-04 14:48:48 +00:00
nobj.pas * check whether methods that implement interface methods are public 2011-09-19 21:22:44 +00:00
nobjc.pas
node.pas
nopt.pas + shortstring support for the JVM target (including accessing character 0 as 2011-08-20 08:11:28 +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 * set the node complexity of stringconstn and setconstn to 1 rather than 2011-08-20 08:33:10 +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 - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
objcutil.pas
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
optcse.pas * Avoid pointer typecast warning 2011-06-29 09:54:46 +00:00
optdead.pas
optdfa.pas
options.pas + generic infrastructure for target-specific switches 2011-11-14 22:57:41 +00:00
optloop.pas
opttail.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
optutils.pas
optvirt.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +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 * fixed unit reloading after the addition of the def field to tcgpara 2011-08-20 08:17:17 +00:00
paramgr.pas + support for non-array/record var parameter on the JVM target using 2011-08-20 08:07:24 +00:00
parser.pas Implement support for $WARN XXX ON/OFF/ERROR 2011-06-28 10:03:07 +00:00
pass_1.pas
pass_2.pas * changed var-parameter of secondpass() into a value parameter: secondpass 2011-08-20 08:23:22 +00:00
pbase.pas * the default string type for the JVM target is no longer automatically 2011-08-20 08:35:47 +00:00
pdecl.pas * for all managed VM targets, reject ord->ptr typecasts (except for 0), 2011-08-20 08:32:21 +00:00
pdecobj.pas * fixed error in r19248 whereby the namespace for automatically generated 2011-10-28 21:19:06 +00:00
pdecsub.pas * allow pocall_internproc to be declared external (-> we can declare the 2011-08-23 22:02:21 +00:00
pdecvar.pas * fixed insertion of typed constants twice in bss after r18723 2011-08-20 20:37:14 +00:00
pexports.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
pexpr.pas * enable support for creating loadvmtaddr nodes for Java interfaces, because 2011-12-04 14:48:48 +00:00
pinline.pas * for all managed VM targets, reject ord->ptr typecasts (except for 0), 2011-08-20 08:32:21 +00:00
pmodules.pas + support for generics on the JVM target: 2011-09-11 11:54:37 +00:00
pp.lpi * version update 2011-08-17 10:57:32 +00:00
pp.pas * define cpu32bit for the JVM target (used by psystem to initialise 2011-08-20 07:36:08 +00:00
pparautl.pas * split several parameter insertion helpers out from pdecsub for 2011-08-20 08:24:40 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcavr.lpi Rebase to revision 17096 2011-03-09 16:29:47 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * keep track of the number of abstract methods per class via a counter 2011-08-20 08:17:12 +00:00
ppx86_64.lpi
procinfo.pas * implemented declaring and calling constructors for Java classes 2011-08-20 07:46:37 +00:00
pstatmnt.pas * when taking the address of an expression for a with-statement, make 2011-08-20 08:30:57 +00:00
psub.pas + support for generics on the JVM target: 2011-09-11 11:54:37 +00:00
psystem.pas * renamed cchartype to cansichartype 2011-08-20 08:35:24 +00:00
ptconst.pas * make it possible to override parts of the typed constant code generation 2011-08-20 08:21:59 +00:00
ptype.pas + support for procedural variables for the JVM target 2011-08-20 08:24:58 +00:00
raatt.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
rabase.pas
rasm.pas
rautils.pas - removed extra "fordefinition" parameter again from tprocdef.mangledname(), 2011-08-20 07:49:31 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * made maxregs related information protected instead of private in trgobj, 2011-08-20 07:38:11 +00:00
scandir.pas + {$VARPARACOPYOUTCHECK+/-} / -Cv switch to enable checking 2011-09-19 19:59:26 +00:00
scanner.pas * fixed all known memory leaks in the code added for the JVM port 2011-09-26 19:31:34 +00:00
script.pas
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 * fixed wrong notes about declaring two destructors after r18427: 2011-08-21 09:11:50 +00:00
symcreat.pas * fixed all known memory leaks in the code added for the JVM port 2011-09-26 19:31:34 +00:00
symdef.pas * fixed error in r19248 whereby the namespace for automatically generated 2011-10-28 21:19:06 +00:00
symnot.pas
symsym.pas * fixed all known memory leaks in the code added for the JVM port 2011-09-26 19:31:34 +00:00
symtable.pas * searchsym_in_named_module() for searching in the module we are currently 2011-08-20 08:24:45 +00:00
symtype.pas + symansistr conditional define that, when activated, makes the symbol/ 2011-08-20 08:13:50 +00:00
symutil.pas
systems.inc + "raw" resource support for the JVM target. The "raw" means that no 2011-08-20 08:34:57 +00:00
systems.pas * the default string type for the JVM target is no longer automatically 2011-08-20 08:35:47 +00:00
tgobj.pas + ttgobj.gethltemptyped() routine for allocating managed types with high level 2011-08-20 08:24:07 +00:00
tokens.pas + list of keywords that are reserved in Java and the JVM, for future 2011-08-20 07:37:47 +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 + ansistring support. Items of note: 2011-08-20 08:10:39 +00:00
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