efficiency

Brian Budge brian.budge@gmail.com
Fri Mar 17 01:58:00 GMT 2006


Hi -

This is not really a gcc question, and it should really be asked
elsewhere... however, it's unlikely that this occasional dereference
will adversely affect performance.

  Brian

On 3/16/06, Bob Rossi <bob_rossi@cox.net> wrote:
> Hi,
>
> I'm currently writing a patch to bison, and can not afford to effect
> it's efficiency.
>
> Theoretically, a function in bison uses a local variable named "lfoo" and
> a global variable named "gfoo". I need to pack both of these into a struct,
> named "sfoo".
>
> If the function currently uses the variables directly like 'lfoo = 0;',
> will changing them to 'sfoo_obj->lfoo = 0;' effect the efficiency of the
> program in regards to speed?
>
> Thanks,
> Bob Rossi
>



More information about the Gcc-help mailing list