This is the mail archive of the
gcc@gcc.gnu.org
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 <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