This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unit at time compilation mode II


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".

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]