File: readme-jvm.txt

package info (click to toggle)
fpc 3.2.0%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 338,552 kB
  • sloc: pascal: 3,794,737; xml: 191,997; ansic: 9,637; asm: 8,482; java: 5,346; sh: 4,664; yacc: 3,751; makefile: 2,688; lex: 2,538; javascript: 2,375; sql: 929; php: 473; cpp: 145; perl: 134; sed: 132; csh: 34; tcl: 7
file content (23 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
About & requirements

This package installs the Free Pascal Compiler 3.0rc1 for JVM. It requires the JDK 1.5 or later to be installed and the "java" executable to be in the PATH.

This package can be used to compile for
  • Java JVM 1.5 or later
  • the Dalvik VM for Android 4.0 or later


Notes

This is a pure compiler port. This means that most of the standard Pascal run time library (RTL) is not available at this time. The reason is that all Pascal language features cannot be supported when targeting the JVM, and as a result large parts of the run time library have to be rewritten.

You can find an overview of the supported language and RTL features at http://wiki.freepascal.org/FPC_JVM/Language

Instead of the standard FPC RTL and packages, you can make use of the standard JDK (1.5)/Android DK (r14) classes via resp. the jdk15 and androidr14 units.


Usage

The compiler binary's name is ppcjvm, and it can also be invoked using fpc -Pjvm. The default target "operating system" is the Java JDK. You can change target Android by specifying the -Tandroid command line parameter when compiling.

If you wish to create additional Pascal units to interface with other Java classes, you can use the javapp utility. See http://wiki.freepascal.org/FPC_JVM/Building#Creating_interfaces_for_other_Java_classes for more information.