Performance gcj & mysql

ezer andres.a@adinet.com.uy
Tue Sep 9 13:11:00 GMT 2008


Thanks Marco,
I tryed with -O2 , -O3, -O6 etc and the result is the same.

When i run gcj-4.3 -static-libgcj --main=MysqlConnect -o mysqlconnect
MysqlConnect.java mysql-5.0.8.o
i get:
/usr/bin/ld: cannot find -lgcj
collect2: ld returned 1 exit status




Marco Trudel-4 wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Performance-gcj---mysql-tp19375453p19392027.html
Sent from the gcc - java mailing list archive at Nabble.com.



More information about the Java mailing list