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]

Re: [RFC] type safe trees


Paolo Bonzini wrote:
I think it all depends on how big this comes out. tree.def is 906 lines long, which would get added to tree.h (3695 lines). With all the extra lines for braces and #includes, tree.h would reach 5000 lines. Not exactly nice for an header.

If you put the typeclass declarations in a rewritten tree.def, all the output could go into one file gt-tree-def.h (included by tree.h), or grouped indirectly into gt-tree-def.h via #include directives.
I guess that makes sense too.  We can't have separate expr.def, type.def
and decl.def files, because the nodes need to refer to one another,
so ordering would be important.

Oh, gengtype would have to be involved anyway because it needs to
understand the generated structures in order to produce the ggc/pch
routines.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



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