Performance gcj & mysql

Marco Trudel marco@mtsystems.ch
Mon Sep 8 17:55:00 GMT 2008


Andrew Haley wrote:
> ezer wrote:
> 
>> 1) How can i improve performance to do it better than jvm ?
> 
> Huh?  Which JVM?  If the answer is some all-singing high-performance
> JIT, then you can't.

Well, enabling optimization might be a start. Try adding "-O2" or "-O3" 
to your compilation command.

>> 2) ./mysqlconnect stays dependant of the gcj libraries? When i uninstall gcj
>> the executable complains about libgcj. Is there any way to have it totally
>> independent, for example i want to copy the executable and mysql-5.0.8.o
>> library without worring if have have gcj installed on that machine.
> 
> This is very difficult.  The -static-libgcj option might help,
> but I wouldn't guarantee it.  For more details see:
> http://gcc.gnu.org/wiki/Statically%20linking%20libgcj

Actually it works quite well as long as you know some little details. 
Just ask if you run into problems...


Marco



More information about the Java mailing list