This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Size problem
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Erik Poupaert <erik dot poupaert at chello dot be>
- Cc: Anthony Green <green at redhat dot com>, <java at gcc dot gnu dot org>
- Date: Sun, 12 Jan 2003 20:22:23 -0500 (EST)
- Subject: RE: Size problem
On Sun, 12 Jan 2003, Erik Poupaert wrote:
> Really. No, thanks. That is no progress. Please, make it an optional option
> for the afficionados.
There's always -static.
> In my impression, shared objects (.so, .dll) are based on a deeply and
> widely spread misconception that such strategy would have advantages. It
> doesn't. In fact, none of the proposed advantages do ever materialize; on
> the contrary, they create the notorious dll hell.
You don't mention the advantages, so I'm not sure just what you're
objecting to, but the disk space savings and memory savings resulting
from shared libraries are definitely real.
Of course they don't help in every situation. Splitting one executable
into a small .exe + .dll doesn't make any sense. But if you application
consists of 20 executables which have 80% of their code in common, then
you really want shared libraries.
Fortunately, with gcj you can choose.
Jeff