using gcj for a different language - is it possible?

Andrew Pinski pinskia@physics.uc.edu
Fri Jan 9 06:11:00 GMT 2004


On Jan 8, 2004, at 12:12, Tom Tromey wrote:
> Florin> Are the two runtimes (gcj and Objective-C) similar/related?
> Florin> Is there any bridge between the two?
>
> As far as I know nobody has done any work in this area.  I don't know
> Objective-C either, so I can't really offer a guess at how difficult
> this would be.

I am replying this to because I have some intentions to add a bridge 
between the two
languages in the future.  Right now the objective-C runtime does not 
know anything
about the GCJ's runtime and other way is true also.

The Objective-C runtime always calls a single function to get message 
passed to an
object while Java almost always uses vtables.  Both can do runtime 
loading of classes.
I have not looked into how Java stores it classes that are loaded 
runtime but
you can read libobjc's source to find out how Objective-C stores it.


Thanks,
Andrew Pinski
pinskia@gcc.gnu.org



More information about the Java mailing list