[mercury-users] Problem installing with grade java

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jul 13 03:52:44 AEST 2001


On 12-Jul-2001, Holger Krug <hkrug at rationalizer.com> wrote:
>  
> > However, another of the things that is missing is support for the Mercury
> > standard library; many of the procedures (e.g. `io__write_string')
> > are implemented as C code using the C standard library, and for the
> > Java back-end these need to be implemented as Java code using the Java
> > standard library.
> 
> That's clear, it's not yet Christmas time for Mercury users.  If we
> get the clue how to do it, we could add library functionality in a
> step by step approach, as we need it in our projects. I've not yet
> looked at the code, so please excuse the following question: How is it
> done, using pragmas "java-code" similar as for C (I would be
> surprised), or in what other way ?

Well, before that can be done, the first step is to implement the compiler
support for `pragma foreign_proc("Java", ...)'.

We already have the infrastructure for supporting `pragma foreign_proc'
in different languages.  E.g. Tyson Dowd just posted a diff to
mercury-reviews for supporting IL for the .NET back-end.
The changes required to support Java code for the Java back-end
would be similar (easier, in fact).

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list