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


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