[PATCH] Speedup gij/libjava loading on darwin
Andrew Pinski
pinskia@physics.uc.edu
Fri Aug 19 03:34:00 GMT 2005
On Darwin, libjava testing takes for ever. The issue is that loading
gij (and
the native programs) is slow and most of the time is spent dyld (the
dynamic
loader, like ld.so). If we link with -single_module, the issue goes
away
because the dynamic loader have less symbols to resolve at load time.
I stole the code in libobjc and libgfortran which I wrote to fix
implement this.
OK? Bootstrapped and tested on powerpc-darwin with no regressions.
Oh and testing libjava takes now 2.5 hours instead of 4 hours or so.
Thanks,
Andrew Pinski
ChangeLog:
* Makefile.am (extra_ldflags_libjava): New variable to
substitute in.
(LIBLINK): Add extra_ldflags_libjava to it.
* configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
"-Wl,-single_module".
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: speedup.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050819/8747636c/attachment.txt>
More information about the Gcc-patches
mailing list