From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20843 invoked by alias); 17 Mar 2006 01:58:41 -0000 Received: (qmail 20817 invoked by uid 22791); 17 Mar 2006 01:58:40 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.194) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Mar 2006 01:58:33 +0000 Received: by zproxy.gmail.com with SMTP id 12so501182nzp for ; Thu, 16 Mar 2006 17:58:30 -0800 (PST) Received: by 10.64.91.15 with SMTP id o15mr1810658qbb; Thu, 16 Mar 2006 17:58:29 -0800 (PST) Received: by 10.65.156.13 with HTTP; Thu, 16 Mar 2006 17:58:29 -0800 (PST) Message-ID: <5b7094580603161758x54bb9f11ld515e5069933145@mail.gmail.com> Date: Fri, 17 Mar 2006 01:58:00 -0000 From: "Brian Budge" To: gcc-help@gcc.gnu.org Subject: Re: efficiency In-Reply-To: <20060317014953.GE30980@brasko.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060317014953.GE30980@brasko.net> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg00124.txt.bz2 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 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 struc= t, > named "sfoo". > > If the function currently uses the variables directly like 'lfoo =3D 0;', > will changing them to 'sfoo_obj->lfoo =3D 0;' effect the efficiency of the > program in regards to speed? > > Thanks, > Bob Rossi >