fpc/rtl
Jonas Maebe 13b0ac91d9 + generate java.lang.Enum descendant classes for Pascal enum types
o these classes get an "enum" flag in the class files
   o these classes get a class field (whose type is that same enum
     class) per enum in the type, which also gets the "enum" flag
   o those class fields are initialised in the class constructor
     with the name of the enum and their order in the declaration
   o if the enum has jumps in FPC (lowest value is not 0, or not
     all values are contiguous), then we add an extra field
     to hold the FPC ordinal value of the enum
   o these classes get a class field valled $VALUES that contains
     a reference to the aforementioned class fields in order of
     declaration (= ordinal->instance mapping, JDK-mandated)
   o apart from the JDK-mandated instance methods (values, valueOf),
     also add FPCOrdinal (returns FPC ordinal value; same as order
     of declaration in case of no jumps) instance method and FPCValueOf
     (returns enum corresponding to FPC ordinal value) static class
     method
   o the mapping between FPC ordinals and enum instances in case of
     jumps is stored in a hashmap whose size is the next prime number
     greater or equal than the number of enum elements
   o moved several extra JDK types to the system unit for the enum
     support, and for future boxing and Java set support
   o several new synthetic method identifiers to generate the enum class
     methods/constructor/class constructor
   o enums with jumps are ordered by FPC ordinal value in the JVM
     $VALUES array so that the java.lang.Enum.doCompare() method
     will properly compare them

git-svn-id: branches/jvmbackend@18616 -
2011-08-20 08:15:28 +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
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 * fixes cmem.malloc et al. for windows as proposed by Ludo Brands, resolves #15571 2011-08-18 08:47:44 +00:00
java + generate java.lang.Enum descendant classes for Pascal enum types 2011-08-20 08:15:28 +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
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
fpmake.inc
fpmake.pp
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

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.