This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
exe vesus class ... !
According to my knowledge , I know that the ( .exe ) file is much faster
than the CLASS file being interpreted by a virtual machine , for the same
source code ... " Ahead-of-Time Compilation versus Interpretation "
but this wasn't the case when I did that using gcj ! .. I measured the
processing time of some java codes using ( <time> command ) in Linux .. it
gives the Real , User and System time .. for single threaded applications ,
this was always the case ( class is 4 times faster than .exe ) , while when
profiling multi-threaded code ( I wrote the same application once in a
single thread and other time multi-threaded ) , in this case ( .exe was
almost 2 times faster ! than class ) ...
I just want to know , if there is something missing in that .. is it normal
to have such results ? .. I mean , isn't there a rule saying that executable
files are faster than classes for the same application all the for example
.. or even slower .. or it's something application dependant !
and if I'm interested in generating ( exe ) files ,how can I make my ( exe )
faster ?, if I can , given that I used ( -O3 ) switch and it didn't jump me
to the level of 4 times faster ( exe ) file to be competing with JVM results
..
and finally , has the RTL got to do anything with optimizing the code even
more than what ( -O3 ) does ?
thanks for help prior to anything ...
============================================================================
=
Mohammad Y. Omara
Microelectronic Circuit Designer
Ellipsis Digital Systems
ECEC ( Ellipsis Cairo Engineering Center )
47 A. Ahmed Tayseer St. Kolleyet Al-Banat
Heliopolis , Cairo , Egypt
Phone: +20-2-2602623-134
Cellular : +20-10-5234368
email: momara@ellipsisdigital.com
www : www.ellipsisdigital.com
============================================================================
=