why gcj is slower than jvm

Andrew Haley aph@redhat.com
Wed Sep 3 10:18:00 GMT 2003


guw writes:
 > Hello!
 > 	I write a JAVA programme and compile it with GCJ. then I compare GCJ's performance with JVM'performance,but I discover that the procedure to be GCJ compiled is slower than JVM.
 >   why?

My guess would be that libgcj's implementation of SHA-1 is slower than
that in whatever JVM you were using.  I expect that SHA-1 could be
made to run very much faster.

Andrew.



More information about the Gcc-help mailing list