How to convert Java class to exe files for performance?  
Author Message
wei_zhao2000





PostPosted: 2003-7-22 2:06:00 Top

java-programmer, How to convert Java class to exe files for performance? I have developped a java application (no awt involved) for my school research.
It's basically a scientific calculation program, which has huge loops.
Now it's very slow to run it in java/JIT.

I'd like to know if there are some existing free program to translate java
code(or class) to C code(or exe) since rewrite my code in C will take too long.

Has anyone used samilar converter before? Any suggestion is appreciated.

Thanks,

Wei
 
Mykola Rabchevskiy





PostPosted: 2003-7-23 1:00:00 Top

java-programmer >> How to convert Java class to exe files for performance? I experimented with my Java code translation into .exe using JET compiler:

http://www.excelsior-usa.com/jet.html

but this way do not increased productivity (may be because I optimized
Java code before).

Wei wrote:

> I have developped a java application (no awt involved) for my school research.
> It's basically a scientific calculation program, which has huge loops.
> Now it's very slow to run it in java/JIT.
>
> I'd like to know if there are some existing free program to translate java
> code(or class) to C code(or exe) since rewrite my code in C will take too long.
>
> Has anyone used samilar converter before? Any suggestion is appreciated.
>
> Thanks,
>
> Wei
>

 
saket





PostPosted: 2003-7-24 1:30:00 Top

java-programmer >> How to convert Java class to exe files for performance? I think it is difficult to conclusively say that .exe would be faster
than .class. It can be opposite sometimes, if you have fairly long
running application that dominates the path length (hence JVM startup
and shutdown costs become neglible). Reason: JIT can apply
optimisations at runtime, compiled .exe only contain static
optimisations (which are applied by javac) - for eg: you can throw away
redudant code at runtime etc.

Try running with other JVMs or latest levels.

http://www-106.ibm.com/developerworks/java/jdk/

Wei wrote:
> I have developped a java application (no awt involved) for my school research.
> It's basically a scientific calculation program, which has huge loops.
> Now it's very slow to run it in java/JIT.
>
> I'd like to know if there are some existing free program to translate java
> code(or class) to C code(or exe) since rewrite my code in C will take too long.
>
> Has anyone used samilar converter before? Any suggestion is appreciated.
>
> Thanks,
>
> Wei

 
 
Niels Ull Harremo雜





PostPosted: 2003-7-26 23:05:00 Top

java-programmer >> How to convert Java class to exe files for performance? You should definitely try JRockIt (freely available from dev2dev.bea.com).
On a previous project, it doubled our performance.


 
 
Roedy Green





PostPosted: 2003-7-31 7:13:00 Top

java-programmer >> How to convert Java class to exe files for performance? On Sat, 26 Jul 2003 17:04:53 +0200, "Niels Ull Harremo雜"
<email***@***.com> wrote or quoted :

>You should definitely try JRockIt (freely available from dev2dev.bea.com).
>On a previous project, it doubled our performance.

It is complete JVM optimised for multicpu servers. See
http://mindprod.com/jgloss/jrockit.html

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





PostPosted: 2003-7-31 22:39:00 Top

java-programmer >> How to convert Java class to exe files for performance? I couldn't tell from the fact sheet (tho I didn't read too closely), but
does it support client-side java (ie, swing).?
It said jdk 1.4.1 compliant, but in the same breath it talked about
server-side java.
Hmmmm..

-Bryan

"Roedy Green" <email***@***.com> wrote in message
news:email***@***.com...
> On Sat, 26 Jul 2003 17:04:53 +0200, "Niels Ull Harremo雜"
> <email***@***.com> wrote or quoted :
>
> >You should definitely try JRockIt (freely available from
dev2dev.bea.com).
> >On a previous project, it doubled our performance.
>
> It is complete JVM optimised for multicpu servers. See
> http://mindprod.com/jgloss/jrockit.html
>
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.