This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: There is room for improvement
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Martin Kahlert <martin dot kahlert at infineon dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 10 Jan 2002 15:22:23 -0500 (EST)
- Subject: Re: There is room for improvement
On Thu, 10 Jan 2002, Martin Kahlert wrote:
> The Tower generated C files are compiled by gcc-2.95.3 using
> -O3 -funroll-loops -fomit-frame-pointer (at least i think/hope so...)
Did you experiment with other optimization levels on either Tower or gcj?
At -O3 you may get excessive inlining, but -O1 doesn't even run the
scheduler pass IIRC.
-funroll-loops may be beneficial to either, but -fomit-frame-pointer
probably does nothing on sparc.
Is this code multithreaded? If not, you can build without
--enable-threads and get a decent profile (with -pg).
Does your program do frequent object allocations? Neither hash
synchronization nor thread-local allocation are enabled yet on
sparc-solaris, both could help considerably depending on the allocation
patterns in your code.
Jeff