fpc/rtl
Jonas Maebe 979f55e1db + support for procedural variables for the JVM target
o every porocedural variable type is represented by a class with one
     public "invoke" method whose signature matches the signature of the
     procvar
   o internally, dispatching happens via java.lang.reflect.Method.invoke().
     WARNING: while this allows calling private/protected or other methods
     that are normally not accessible from another context, a security
     manger can override this. If such a security manager is installed,
     most procvars will cause security exceptions
   o such dispatching also requires that all arguments are wrapped, but
     that's done in the compiler-generated body of the invoke method,
     so that procvars can also be called conveniently from Java code
   o typecasting between a procedure of object and tmethod is supported,
     as well as Delphi-style replacing of only the method pointer via
     @procvar1=@procvar2.
   o nested procvars are not yet supported, but most of the basic
     infrastructure for them is already present
  * all units/programs now get an internal __FPC_JVM_Module_Class_Alias$
    type when compiled for the JVM target, which is an "external" class
    that maps to the unit name. This is required to look up the
    JLRMethod instances for regular functions/procedures
  + new tabstractprocdef.copyas() method that allows to create a procvar
    from a procdef and vice versa

git-svn-id: branches/jvmbackend@18690 -
2011-08-20 08:24:58 +00:00
..
amiga + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
arm * Promoted result type of FPC_PCHAR_LENGTH and FPC_PWIDECHAR_LENGTH to SizeInt. 2011-06-13 04:59:17 +00:00
atari * unicodestringmanager patch from r11743 extended to OS/2 and other platforms using system.pas instead of system.pp 2008-12-19 12:47:17 +00:00
avr * fixed compilation of assembler helpers 2011-02-27 21:11:03 +00:00
beos + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
bsd * fix type of fourth parameter of msgrcv function 2010-11-23 23:44:34 +00:00
darwin + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
embedded + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
emx + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
freebsd + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
gba + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
go32v2 + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
haiku + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
i386 * Promoted result type of FPC_PCHAR_LENGTH and FPC_PWIDECHAR_LENGTH to SizeInt. 2011-06-13 04:59:17 +00:00
inc + support for formal var/out parameters on the JVM target: 2011-08-20 08:23:33 +00:00
java + support for procedural variables for the JVM target 2011-08-20 08:24:58 +00:00
jvm + minimal Java rtl (based on embedded rtl, but with all code and most 2011-08-20 07:45:34 +00:00
linux + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
m68k + initial implementation of iso style gotos in iso mode 2010-08-05 19:20:46 +00:00
macos + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
mips * don't change the fpu control word in the initialisation code of dynamic 2010-11-14 16:00:25 +00:00
mipsel * more mipsel code 2009-12-06 12:12:15 +00:00
morphos + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
nativent + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
nds + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
netbsd + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
netware + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
netwlibc + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
objpas * fix Types.UnionRect as proposed by Piotr Karasinski, resolves #20006 2011-08-17 12:01:23 +00:00
openbsd * Regenned all makefiles before 2.6.x branching. 2011-08-03 13:41:52 +00:00
os2 + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
palmos + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
powerpc * Promoted result type of FPC_PCHAR_LENGTH and FPC_PWIDECHAR_LENGTH to SizeInt. 2011-06-13 04:59:17 +00:00
powerpc64 * don't overwrite the target value of interlockedcompareexchange*() if the 2010-11-29 12:53:10 +00:00
qnx * Regenned all makefiles before 2.6.x branching. 2011-08-03 13:41:52 +00:00
solaris + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
sparc + initial implementation of iso style gotos in iso mode 2010-08-05 19:20:46 +00:00
symbian + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
ucmaps
unix * patch by Nikolay Nikolov to support Alt-Tab and Ctrl-Tab on the linux console, resolves #19247 2011-08-16 18:58:50 +00:00
watcom * Regenned all makefiles before 2.6.x branching. 2011-08-03 13:41:52 +00:00
wii + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
win * load listseparator from locale. Patch by Bart B. Mantis 19976 2011-08-13 09:16:46 +00:00
win32 + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
win64 + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
wince + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
x86_64 * Reverted r17343, and IFDEF'ed out the newer assembler procedures for FreeBSD for now. They require fixes to assembler writer, and after it's done they still have to be disabled during bootstrapping. 2011-04-19 15:28:53 +00:00
COPYING.FPC
COPYING.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00
fpmake.inc + unicode functions for sysutils, makes tunistr6.pp compiling 2009-07-17 14:05:19 +00:00
fpmake.pp + unicode functions for sysutils, makes tunistr6.pp compiling 2009-07-17 14:05:19 +00:00
Makefile + minimal Java rtl (based on embedded rtl, but with all code and most 2011-08-20 07:45:34 +00:00
Makefile.fpc * Trunk version to 2.7.1 2011-08-03 13:59:33 +00:00
README.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00

This is the Run-Time Library (RTL) tree for Free Pascal.

To recompile the RTL, edit the main makefile. The makefiles NEED a GNU make
compatible make, they need unix-like 'rm' and 'mv' commands, as well as some
others. You can find these in the gnuutils package on the ftp site.

The main makefile is located ABOVE the RTL tree. It uses the FPC
makefile.fpc to guess reasonable defaults for everything it needs.
(these files can be found in base.zip on the FTP site)

The only variable that you may want to set are
FPC             - What compiler to use. Use an absolute path. 
                  (default is ppc386)
INSTALL_UNITDIR - Where to install the RTL units 
OPT             - any special options you want to set for the compiler.

In principle, you can also descend into the subdirectory of your OS, and
type 'make' there, that should also compile everything.

The tree contains subdirectories for all the supported operating systems,
as well as all processor architectures. The processor directories contain
low-level routines which are required for the system unit (if they are not 
available in high-level language form), as well as optimized versions of
the pascal generic routines (the generic routine source code is localed in
the inc subdirectory).

The following directories are not supported officially and may not work
correctly with FreePascal v1.0:

go32v1 - The DJGPP go32v1 DOS extender (no longer supported)
palmos - The PalmOS directory for the Dragonball (incomplete)


Enjoy.