This is the mail archive of the
mailing list for the GCC project.
Re: Some (small) c++ compilation profiling data (oprofile)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Robert Dewar <dewar at gnat dot com>, "levon at movementarian dot org" <levon at movementarian dot org>, "zack at codesourcery dot com" <zack at codesourcery dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 21 May 2002 09:57:38 -0700
- Subject: Re: Some (small) c++ compilation profiling data (oprofile)
- References: <20020521090714.12CDCF28CE@nile.gnat.com>
--On Tuesday, May 21, 2002 05:07:14 AM -0400 Robert Dewar <email@example.com>
>> 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 firstname.lastname@example.org
CodeSourcery, LLC http://www.codesourcery.com