Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2007

Tip: Looking for answers? Try searching our database.

Compile C++/Java into C--Possible ?

Thread view: 
Rabbit.Joy@163.com - 04 Mar 2007 07:21 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.