[antlr-interest] Translating from Java to C++

Jim Idle jimi at intersystems.com
Sun Feb 4 11:05:01 PST 2007


 

 

From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Andy Tripp
Sent: Sunday, February 04, 2007 7:20 AM
To: Jean Marc Vanel
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Translating from Java to C++

 

I spent three years building a C-to-Java translator, and also have a
COBOL-to-Java translator
and C++-to-Java translator both in beta trials now. See jazillian.com.
It's harder than it looks,
and the biggest issue is what to do with the libraries.

 

Although the original post was about Java to C++ Andy. Potentially this
is an easier problem, but your conjecture here is otherwise completely
accurate, the work is in all the support libraries. What do you do when
the java code creates a remote interface, calls swing classes, etc. Lots
of work providing the C++ equivalent of all the Java interfaces,
compared to which the code translation is trivial (especially as you can
ignore a lot of optimizations you would perform the other way as the C++
compiler will do them for you.

 

Jim

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070204/3dcf4d52/attachment.html 


More information about the antlr-interest mailing list