This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.1: Buildable on GHz machines only?
- From: Tom Tromey <tromey at redhat dot com>
- To: Matt Thomas <matt at 3am-software dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>, GCJ Hackers <java at gcc dot gnu dot org>
- Date: 06 May 2005 11:43:27 -0600
- Subject: Re: GCC 4.1: Buildable on GHz machines only?
- References: <200504271441.j3REfND27584@makai.watson.ibm.com><426FAA43.7030009@3am-software.com> <m3zmvipy7h.fsf@gossamer.airs.com><17010.666.458892.446031@cuddles.cambridge.redhat.com><m3zmvhk4s2.fsf@gossamer.airs.com> <jemzrh623h.fsf@sykes.suse.de><17010.27400.618827.676847@cuddles.cambridge.redhat.com><m3acnhij8a.fsf@gossamer.airs.com><17010.34935.1690.561237@cuddles.cambridge.redhat.com><m3pswdgt11.fsf@gossamer.airs.com><20050429222259.GA25544@synopsys.com><4272B949.4020303@3am-software.com>
- Reply-to: tromey at redhat dot com
>>>>> "Matt" == Matt Thomas <matt@3am-software.com> writes:
Matt> I'd like to libjava be split into multiple shared libraries.
Matt> In C, we have libc, libm, libpthread, etc. In X11, there's X11, Xt, etc.
Matt> So why does java have everything in one shared library? Could
Matt> the swing stuff be moved to its own? Are there other logical
Matt> divisions?
This is possible, though it isn't completely trivial.
To get the best effect at runtime, you want completely separate shared
libraries, which aren't linked in by default. So then you need a
mechanism to load these libraries dynamically. There are a few ways
to implement this, but you have to be careful to let the test suite
continue to work even if the user hasn't run "make install".
I would suggest separating out AWT and Swing as a first test. Tom
Fitzsimmons' patch to BC-compile these libraries will make this a lot
simpler, as it already handles the weird special cases, and already
breaks up the build along the required lines.
Tom