This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/19368] GCJ doesn't build working "hello world" on OS X
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2005 19:00:18 -0000
- Subject: [Bug java/19368] GCJ doesn't build working "hello world" on OS X
- References: <20050111045400.19368.bothner@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-11 19:00 -------
(In reply to comment #4)
> Indeed, it just takes forever: About 40+ seconds on my 1Gz G4 PowerBook.
> Linking with -Wl,-bind_at_load doesn't make much difference.
You have to link libgcj with -single_module to get the speed up. This is a dyld (dynamic loader aka
ld.so) problem and not really a java problem.
> I thought it worked before (I don't consider 40 seconds start-up time "working")
> but perhaps I'm mistaken.
The start up time comes from looking up symbols in the dynamic library and it is really a bug in dyld
and the only work around I know of is to link libgcj with -single_module, I can post a patch for that but
that will take a while because there are more important things with respect with the release of GCC than
the slow start-up time of gcj on Pather (Tiger it is fixed).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19368