<div dir="ltr"><div class="gmail_quote">On Sat, Aug 20, 2011 at 11:49 AM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
There is a new branch in svn (branches/jvmbackend) that contains support for compiling Pascal code into Java virtual machine bytecode. While it does not support all language constructs and while there are some differences in some features that are supported, in general the result is fairly close to "normal Pascal" you'd write.<br>
<br>
Note however that this is a pure compiler port at this time. That means that while most of the language support is fairly complete, pretty much no standard Pascal units are available. For all practical intents and purposes there is only the system unit, and even that one misses many routines (including helpers required for basic functions such as read(ln)/write(ln), val, str, delete, pos, ...).<br>
<br>
On the other hand, a unit that contains the entire public interface of the JDK 1.5 is available. Over time, it should be possible to provide most of the standard functionality of the system unit (and other units) implemented on top of that unit, or rewritten in Pascal code that does not depend on untyped pointer accesses.<br>
<br>
Download information, usage information etc is available at <a href="http://wiki.freepascal.org/FPC_JVM" target="_blank">http://wiki.freepascal.org/FPC_JVM</a><br>
<br>
Regarding Android: the compiler and the system unit both use a bunch of standard functionality from the JDK to implement various features. So Android support would probably require quite a bit of extra work. I have not looked into that.<br>
<br>
Enjoy!<br>
<font color="#888888"><br></font></blockquote><div><br>Is it good idea to write client application work on internet browser? <br></div></div><br>Zaher Dirkey<br>
</div>