GCJ is pretty usable these days. It allows Java programs to be compiled to native code. It might be interesting to investigate the possibilities of implementing external definitions in Java using the Java ATerm library.

By using GCJ is should be possible to invoke this code directly from native Stratego programs. We need to implement an interface between the Java ATerm Library and the C ATerm library for this. It might even be possible to use the C ATerm library from Java by implementing an native interface for GCJ, which seems to be much more attractive then JNI.

Submitted on 26 March 2004 at 12:46

On 26 March 2004 at 18:20 Jira commented:

STR-36, martin:
CNI documentation:
http://gcc.gnu.org/onlinedocs/gcj/About-CNI.html


On 26 March 2004 at 21:56 Jira commented:

STR-36, martin:
First experiments at this point are available at:

https://svn.cs.uu.nl:12443/repos/StrategoXT/trunk/experimental/stratego-gcj/

You need to have gcj to run the example. I need to add actual Java en Stratego code of course.


On 9 January 2013 at 16:55 Eelco Visser removed tag 0.22

On 9 January 2013 at 16:55 Eelco Visser tagged interesting

Log in to post comments