Re: Performance gcj & mysql

Marco Trudel <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.