There is room for improvement

Jeff Sturm
Thu Jan 10 12:22:00 GMT 2002

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.


More information about the Java mailing list