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 / July 2004

Tip: Looking for answers? Try searching our database.

Java to C++

Thread view: 
Martin Demberger - 02 Jul 2004 12:59 GMT
Hi,
I'm working on an article about compiling java-sources to c++.
I'm interessted if someone would use this to write a program in java (and
the good IDE's available for java) and convert this to C++ to get the
advantages and speed of this language.

mfg
Martin Demberger
Roedy Green - 02 Jul 2004 16:38 GMT
>I'm working on an article about compiling java-sources to c++.
>I'm interessted if someone would use this to write a program in java (and
>the good IDE's available for java) and convert this to C++ to get the
>advantages and speed of this language.

This approach has no advantage over the current compilers/jvms which
generate assembler. It is just one extra step.

Hand converting critical code to C++ can help in some circumstances,
but then the data structures bear little resemblance to their Java
counterparts, there is no Java-style safety net, you handle
allocation/destruction manually etc. It has to be tweaked for a
particular platform.  It uses the native GUI rather than Swing....

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Markus Schaber - 20 Jul 2004 19:11 GMT
Hi,

> I'm working on an article about compiling java-sources to c++.
> I'm interessted if someone would use this to write a program in java
> (and the good IDE's available for java) and convert this to C++ to get
> the advantages and speed of this language.

Did you try GNU gcj? This software is the Java frontend of the GNU
Compiler Collection, so you can mix java code with C++, C and all other
GCC supported languages.

HTH,
Markus

Signature

markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com



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.