This is the mail archive of the gcc@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] | |
On 3/12/07, Andrew Pinski <pinskia@gmail.com> wrote: > Can I recommend something just crazy, rewrite the C and C++ front-ends > so they don't use the tree structure at all except when lowering until > gimple like the rest of the GCC front-ends?
The C front end already emits generic, so there's almost no win in rewriting it (one lame tree code in c-common.def -- not worth the effort ;-).
I was thinking to rewrite the C++ front-end not to use extra tree codes you would also need to rewrite the C front-end but now thinking about, you could use one tree code for all of C++ and then use subcodes or at least one tree code for types, one for expressions, one for decls and one for all others and then use subcodes. This seems more like good an inherience issue, right now we have a very flat class system, this change will then making it slightly higher inheianct chain but we should able to reduce some of the bloat from the middle-end that the C++ front-end abuses the tree structure wise.
Thanks, Andrew Pinski
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |