public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Fergus Henderson <fjh@cs.mu.oz.au>
To: Zack Weinberg <zack@codesourcery.com>
Cc: gcc@gcc.gnu.org
Subject: Re: The bloat sweepstakes...
Date: Tue, 09 Oct 2001 23:24:00 -0000	[thread overview]
Message-ID: <20011010162403.A5189@hg.cs.mu.oz.au> (raw)
In-Reply-To: <20011007102535.K9432@codesourcery.com>

On 07-Oct-2001, Zack Weinberg <zack@codesourcery.com> wrote:
> Largely for amusement, here's some statistics on the sizes of the
> compiler binaries.  All figures are in kilobytes, for the final stage
> of an i386 native bootstrap.  First, the back end:
> 
> text    rodata  data    bss     total   file
> 2360.3  457.2   17.2    494.5   3329.3  libbackend.a

Note that the rodata and bss sizes are both problematic for the Mercury
front-end.  The reason is that the Mercury front-end uses the Boehm
conservative collector, which scans the bss section and
(on most systems) the rodata section.  (There's actually no need for
the conservative collector to scan the rodata section, since that can't
contain pointers to the heap, but unfortunately it's hard to tell where
the rodata section starts and ends.)

This means that if the GCC back-end is linked in with the Mercury
compiler, it will slow down compilation, due to the need for the Boehm GC
to scan those areas.  And this slow-down will occur even if GCC back-end
is not being used, e.g. when compiling via C.

This is a significant disincentive to including the GCC-based
native-code back-end in the standard Mercury distribution.

So it would certainly be nice if those rodata and bss sizes could be
reduced...

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.

  parent reply	other threads:[~2001-10-09 23:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-07 10:25 Zack Weinberg
2001-10-07 10:44 ` guerby
2001-10-07 11:26   ` Zack Weinberg
2001-10-07 11:44     ` guerby
2001-10-07 12:43       ` Zack Weinberg
2001-10-07 14:42         ` guerby
2001-10-09 23:24 ` Fergus Henderson [this message]
2001-10-10 15:09   ` Zack Weinberg
2001-10-10 23:03     ` Fergus Henderson
2001-10-10 23:46       ` Zack Weinberg
2001-10-19  9:43     ` law
2001-10-22  0:39       ` Zack Weinberg
2001-10-22  8:28         ` law
2001-10-22 15:01           ` Richard Henderson
2001-10-07 15:16 dewar
2001-10-08  9:59 ` Zack Weinberg
2001-10-07 15:21 dewar
2001-10-07 15:24 dewar
2001-10-08 10:01 dewar
2001-10-08 10:03 dewar
2001-10-08 10:07 dewar
2001-10-08 11:04 ` Zack Weinberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011010162403.A5189@hg.cs.mu.oz.au \
    --to=fjh@cs.mu.oz.au \
    --cc=gcc@gcc.gnu.org \
    --cc=zack@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).