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: Some (small) c++ compilation profiling data (oprofile)




--On Tuesday, May 21, 2002 05:07:14 AM -0400 Robert Dewar <dewar@gnat.com> 
wrote:

>> Note that the new parser has not been tuned for speed *at all*.  Heck,
>> I didn't even do the usual operator precedence stuff; we do the full
>> recursion for expressions in the naive way you would if you typed in
>> the C++ grammar directly.
>
> I don't think that's such a bad idea, procedure calls are pretty cheap,
> and I doubt this is a source of any significant inefficiency.

I measured it, and it is inefficient.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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