Hi,
I know that some granddaddy-level C++ compiler can compile C++ code
into a C intermediate. Apart from that, however, I can not find any
modern compiler to do that. And in fact, I think, this factor is very
pragmatical for a C programmer to learn Java more effectively.
Any one can give me some information on that ? Tools, compilers or
other methods applicable are all attractive to me.
Thanks.
Ronny Schuetz - 04 Mar 2007 11:35 GMT
> And in fact, I think, this factor is very
> pragmatical for a C programmer to learn Java more effectively.
I wouldn't expect too much. The intermediate C code might be very
bloated and hard to read. It was it at least for SAS/C++ about 10 years
ago. The code was compilable and working, but was not intended to be
human readable.
Jeroen Wenting - 04 Mar 2007 15:32 GMT
You mean you want a Java to C transpiler?
I've never heard of such a thing.
> Hi,
> I know that some granddaddy-level C++ compiler can compile C++ code
[quoted text clipped - 6 lines]
>
> Thanks.
gg - 06 Mar 2007 16:55 GMT
don't know about compilers, what translators.
Google is our friend here
Toba: A Java-to-C Translator
Java-to-C Translator: translates Java class files into C source code
to allow making directly executable programs. For stand-alone applications,
...
www.cs.arizona.edu/projects/sumatra/toba/ - 4k - Cached - Similar
pages
Learning C from Java: Differences
A list of differences between C and Java, assuming a previous
knowledge with Java.
www.comp.lancs.ac.uk/computing/users/ss/java2c/diffs.html - 70k -
Cached - Similar pages
Java pulling ahead? Java versus C++ benchmarks
Five composite benchmarks listed below show that modern Java has
acceptable performance, being nearly equal to (and in many cases faster
than) C/C++ across ...
www.idiom.com/~zilla/Computer/javaCbenchmark.html - 32k - Cached -
Similar pages
Java for C and C++ Programmers
With regard to simple data types, the main difference between C and
Java ... Thus the behavior of simple Java variables is similar to their C
counterparts. ...
www.d.umn.edu/~gshute/java/c2java.html - 37k - Cached - Similar pages
> Hi,
> I know that some granddaddy-level C++ compiler can compile C++ code
[quoted text clipped - 6 lines]
>
> Thanks.