[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DR Grammars / parse time in GCC

From: Tim Josling
Subject: Re: DR Grammars / parse time in GCC
Date: Fri, 06 Jul 2001 20:44:43 +1000

For combine.c it is 1.95/4.36 seconds so you are right. I will
rebuild gcc with profile on and see if that is really the parse
or if it is code executed within the parse actions.

I know in my COBOL compiler where I cleanly separate the
parse/analyse/code gen the parse doesn't show up on theradar at
all. More to come. 

Tim Josling

> Date: Wed, 4 Jul 2001 08:57:51 +0200 (MEST)
> From: Axel Kittenberger <address@hidden>
> To: Tim Josling <address@hidden>
> Cc: address@hidden
> Subject: Re: DR Grammars
> > This will be slower but should often be fast enough. Eg if you
> > look at GCC the parse time is negligible as a percentage.
> Sure? I darkly remember I've seen on the gcc mailinglist a profile where
> they said 
> gcc spends a majority of time in the function yyparse(). Altough since both
> the 
> parser grammar and the action rules reside in this function it's hard to say
> what 
> takes what, also I didn't profile gcc myself so it's all just a
> hear-and-repeat 
> tattle.
> - Axel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]