public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Neil Booth <neil@daikokuya.demon.co.uk>
To: Joern Rennecke <amylaar@onetel.net.uk>
Cc: Zack Weinberg <zack@codesourcery.com>,
	joseph@daikokuya.demon.co.uk, gcc@gcc.gnu.org
Subject: Re: Best way to remove cpp0
Date: Sun, 14 Oct 2001 23:41:00 -0000	[thread overview]
Message-ID: <20011015074042.B20594@daikokuya.demon.co.uk> (raw)
In-Reply-To: <200110150041.BAA04736@meolyon.local>

Joern Rennecke wrote:-

> The Gnu coding standards say you shouldn't make the program behaviour
> dependent on the name the program is invoked with.

I don't believe that was my proposal - gcc and g++ have always done
different things.

> This is just asking for Heisenbugs.  You want to be able to feed the .i
> file into cc1 with the same result as when you invoke the driver with
> --save-temps, so you better actually feed the .i file into cc1 the first
> time too.

Right; but that is precisely Joseph's suggestion, no?

> On the other hand, you are going to use a binary that has extra functionality
> that is seldom used (stand-alone preprocessing) for another task that
> happens very often.  We currently don't have a sufficiently advanced
> profile based feedback infrastructure to avoid increasing the working
> set size by interleaving used code with unused code from the extra
> functionality.

It's very small.  I wouldn't call the amount of code in cppmain.c
significant.

> I can't follow you here.  Why is it posible to make a cc1-cum-cpp binary
> with more efficient preprocessed output more easily than a single-purpose
> cpp binary?

Because it is in cppmain.c, which uses the library's external
interface.  If moved into the library, things that are currently done
with function calls etc. could be done by derefencing pfile, for
example.

Neil.

  reply	other threads:[~2001-10-14 23:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-12 14:35 Neil Booth
2001-10-12 14:44 ` Daniel Jacobowitz
2001-10-12 15:24   ` Neil Booth
2001-10-12 14:48 ` Joseph S. Myers
2001-10-12 15:01 ` Stan Shebs
2001-10-12 15:19   ` Neil Booth
2001-10-14 17:45 ` Joern Rennecke
2001-10-14 23:41   ` Neil Booth [this message]
2001-10-15  1:18     ` Joern Rennecke

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=20011015074042.B20594@daikokuya.demon.co.uk \
    --to=neil@daikokuya.demon.co.uk \
    --cc=amylaar@onetel.net.uk \
    --cc=gcc@gcc.gnu.org \
    --cc=joseph@daikokuya.demon.co.uk \
    --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).