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