This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Performance gcj & mysql


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]