This is the mail archive of the
mailing list for the GCC project.
Re: Unit at time compilation mode II
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com
- Date: Tue, 11 Feb 2003 02:17:26 -0800
- Subject: Re: Unit at time compilation mode II
- References: <20030210211453.GO6688@kam.mff.cuni.cz>
This is a nifty thing. Can I suggest you look into using this to
disentangle nested-function compilation, so that we never recurse
into c_expand_body from the RTL generator? This would be especially
nice to do for C++ where nested classes (containing functions) are
part of the official language and used relatively frequently.
(That would entail that unit-at-a-time compilation was mandatory,
which I think should be just fine particularly if we can knock down
the size of DECL nodes a bit.)
> + Parse whole compilation unit before starting to produce code. This allows some
> + extra optimizations to take place but consumes more memory.
Grammar: "Parse the whole compilation unit".