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]

Re: Preprocessor performance analysis


> When considering the above, note that the 3.x preprocessor has greater
> functionality than 2.95.x, e.g. _Pragma (a small but non-trivial
> bottleneck, since every identifier token has to be checked to see if
> it is _Pragma), better diagnostics, and fixes numerous minor bugs in
> the former.  Producing preprocessed output is an extra step for 3.0.x,
      ^^2.95.x
> but a natural by-product of preprocessing for 2.95.x, which isn't
> performed with integrated CPP, that on this machine takes roughly
> 25-40% of execution time, depending on the file.

I should also mention that 2.95.x leaks almost all the memory it uses.
Also, stand-alone 3.1-CURRENT takes the effort to free() all allocated
memory, and has no memory leaks [I think it may have leaks with
-remap, but who cares about that].

Neil.


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