This is the mail archive of the
mailing list for the GCC project.
Re: Best way to remove cpp0
- To: neil at daikokuya dot demon dot co dot uk (Neil Booth)
- Subject: Re: Best way to remove cpp0
- From: Joern Rennecke <amylaar at onetel dot net dot uk>
- Date: Mon, 15 Oct 2001 09:16:59 +0100 (BST)
- Cc: amylaar at onetel dot net dot uk (Joern Rennecke), zack at codesourcery dot com (Zack Weinberg), joseph at daikokuya dot demon dot co dot uk, gcc at gcc dot gnu dot org
> Right; but that is precisely Joseph's suggestion, no?
No, he proposed to have a cc1 that writes the .i file while it is
simultanously - maybe with X tokens delay - compiling the preprocessing
tokens to assembler (or at least syntax check it with -fsyntax-only).
> > 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
Well, you could move the functionality into cpplib and have a separate cpp0
executable which just invokes that functionality.