Difference between revisions of "FPC JVM"

From Free Pascal wiki
Jump to navigationJump to search
(→‎Snapshots: slight reformatting based on Russian translation :) (+ removed one indentation level from download links))
Line 9: Line 9:
 
You can find compiled snapshots of the initial version below (svn r18783, 2011/08/20). These are cross-compilers from the mentioned platform to the JVM. The generated code is not specific to the JVM running on that particular platform.
 
You can find compiled snapshots of the initial version below (svn r18783, 2011/08/20). These are cross-compilers from the mentioned platform to the JVM. The generated code is not specific to the JVM running on that particular platform.
  
Installation instructions: unpack the archive file, adjust the path in the unpacked ''bin\fpc.cfg'' (Windows) or ''etc/fpc.cfg'' (other platforms) so it points to the directory where you unpacked the file, and use the included ''ppcjvm'' compiler to compile sources. A number of test files used during development of the JVM backend can be found at http://svn.freepascal.org/svn/fpc/branches/jvmbackend/tests/test/jvm
+
Installation instructions:
 +
* unpack the archive file
 +
* adjust the path in the unpacked ''bin\fpc.cfg'' (Windows) or ''etc/fpc.cfg'' (other platforms) so it points to the directory where you unpacked the file
 +
* use the included ''ppcjvm'' compiler to compile sources
  
* Snapshot download links
+
A number of test files used during development of the JVM backend can be found at http://svn.freepascal.org/svn/fpc/branches/jvmbackend/tests/test/jvm
** [http://sourceforge.net/projects/freepascal/files/JVM/2.7.1-r18783-snapshot1/fpcjvmwin32-snapshot1.zip/download Windows] (i386) ([ftp://ftp.freepascal.org/pub/fpc/contrib/jvm/fpcjvmwin32-snapshot1.zip slower mirror])
+
 
** [http://sourceforge.net/projects/freepascal/files/JVM/2.7.1-r18783-snapshot1/fpcjvmmacosx-snapshot1.tbz/download Mac OS X] (universal binary, Mac OS X 10.5 or later) ([ftp://ftp.freepascal.org/pub/fpc/contrib/jvm/fpcjvmmacosx-snapshot1.tbz slower mirror])
+
Snapshot download links:
** [http://sourceforge.net/projects/freepascal/files/JVM/2.7.1-r18783-snapshot1/fpcjvmlinux-snapshot1.tbz/download Linux] (i386) ([ftp://ftp.freepascal.org/pub/fpc/contrib/jvm/fpcjvmlinux-snapshot1.tbz slower mirror])
+
* [http://sourceforge.net/projects/freepascal/files/JVM/2.7.1-r18783-snapshot1/fpcjvmwin32-snapshot1.zip/download Windows] (i386) ([ftp://ftp.freepascal.org/pub/fpc/contrib/jvm/fpcjvmwin32-snapshot1.zip slower mirror])
 +
* [http://sourceforge.net/projects/freepascal/files/JVM/2.7.1-r18783-snapshot1/fpcjvmmacosx-snapshot1.tbz/download Mac OS X] (universal binary, Mac OS X 10.5 or later) ([ftp://ftp.freepascal.org/pub/fpc/contrib/jvm/fpcjvmmacosx-snapshot1.tbz slower mirror])
 +
* [http://sourceforge.net/projects/freepascal/files/JVM/2.7.1-r18783-snapshot1/fpcjvmlinux-snapshot1.tbz/download Linux] (i386) ([ftp://ftp.freepascal.org/pub/fpc/contrib/jvm/fpcjvmlinux-snapshot1.tbz slower mirror])
  
 
If your platform is not listed above, or if you are only interested in building the compiler/rtl from source, a separate archive that only contains the compiled Java components (Jasmin, javapp, BCEL) is also available. Building instructions are listed below.
 
If your platform is not listed above, or if you are only interested in building the compiler/rtl from source, a separate archive that only contains the compiled Java components (Jasmin, javapp, BCEL) is also available. Building instructions are listed below.

Revision as of 23:51, 20 August 2011

English (en) русский (ru)

Overview

The FPC backend for the Java Virtual Machine (JVM) generates Java byte code that conforms to the specifications of the JDK 1.5 (and later). While not all FPC language features work when targeting the JVM, most do (or will in the future) and we have done our best to introduce as few differences as possible.

This FPC JVM backend is not related to Project Cooper by RemObjects, nor does FPC now support the Oxygene language.

Snapshots

You can find compiled snapshots of the initial version below (svn r18783, 2011/08/20). These are cross-compilers from the mentioned platform to the JVM. The generated code is not specific to the JVM running on that particular platform.

Installation instructions:

  • unpack the archive file
  • adjust the path in the unpacked bin\fpc.cfg (Windows) or etc/fpc.cfg (other platforms) so it points to the directory where you unpacked the file
  • use the included ppcjvm compiler to compile sources

A number of test files used during development of the JVM backend can be found at http://svn.freepascal.org/svn/fpc/branches/jvmbackend/tests/test/jvm

Snapshot download links:

If your platform is not listed above, or if you are only interested in building the compiler/rtl from source, a separate archive that only contains the compiled Java components (Jasmin, javapp, BCEL) is also available. Building instructions are listed below.

  • FPC JVM utilities (you do not need this if you already downloaded one of the files above)

More information