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: Great example of why "everything is a tree" sucks


On Wed, Nov 13, 2013 at 11:49:56AM +0100, Steven Bosscher wrote:
> source language? That's still true, and one reason for it is 'tree'.
> The Ada, Fortran, and even C front ends use front-end specific data
> structures for most parsed entities and only produce 'tree' from it in
> the process of generatic GENERIC.

You are clearly misreading what the C front end does then.  It doesn't have
any IL other than trees, and uses trees for everything from the start.

And, the problems with the FEs you've talked about aren't caused by using
trees, but by folding stuff too early.  It got somewhat better in the C FE,
but the C++ FE still folds things too early everywhere.

	Jakub


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