This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: timing of lexical analysis in -ftime-report
- From: "Brandon L Hewitt" <blhewitt at attbi dot com>
- To: "Neil Booth" <neil at daikokuya dot co dot uk>,"Zack Weinberg" <zack at codesourcery dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Mar 2003 23:57:27 -0800
- Subject: RE: timing of lexical analysis in -ftime-report
Zack, Neil,
Thanks for the quick response. I understand better what's going on.
Brandon
-----Original Message-----
From: Neil Booth [mailto:neil at daikokuya dot co dot uk]
Sent: Monday, March 17, 2003 12:33 PM
To: Zack Weinberg
Subject: Re: timing of lexical analysis in -ftime-report
Zack Weinberg wrote:-
> The primary function is indeed to give a starting point for
> performance comparisons of different sections of gcc. But we do
> intend the names of the different passes to reflect what they are
> called in compiler theory, because that makes it easier to understand.
>
> For C and its descendants, it happens that the preprocessor has to do
> almost all the work of lexical analysis, and there's no point in doing
> it twice. Thus, the majority of time performing lexical analysis
> happens under TV_CPP. If you were to look at, say, Fortran source
> code you would find that lexical analysis is attributed to TV_LEX,
> since that language does not use the C preprocessor.
For CPP it's historical baggage; we might try and eliminate TV_LEX
for C family.
Neil.