This is the mail archive of the gcc-patches@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: [incremental] Patch: FYI: lex all at once



On Aug 20, 2007, at 6:02 PM, Tom Tromey wrote:


"Chris" == Chris Lattner <clattner@apple.com> writes:

This changes the C front end to do all lexing at once, rather than
incrementally. This is infrastructure needed for token checksumming.

Chris> Interesting. Out of curiosity, does this speed up or slow down the C
Chris> compiler at all?


I haven't tried comparing it in isolation yet.  I made a note to do
that at some point in the future -- but it could be a while.

Okay, thanks!


Do we have some standard benchmark we use for this?

No idea :)


ISTR that the equivalent change for C++ yielded a speedup, but I
wouldn't assume the same will apply to C.

Yep, that's why I'm curious. C++ does do quite a bit more backtracking etc than the C front-end though, so the speedup may not translate over.


Thanks Tom!

-Chris


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