Date: Wed, 23 Sep 1998 14:15:28 +0300 (IDT) From: Eli Zaretskii To: Doug Gale cc: djgpp AT delorie DOT com Subject: Re: Optimizations In-Reply-To: <3604F82B.68D16BCF@mailexcite.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 20 Sep 1998, Doug Gale wrote: > the compiler generates this (strange) code: > > movl $0,nFront > movl nFront,%ebx > movl %ebx,nBack > movl %ebx,nOnPlane > > Why read a constant from memory after storing it? I expected something like > this: > > xorl %ebx,%ebx > movl %ebx,nFront > movl %ebx,nBack > movl %ebx,nOnPlane IMHO, you should talk to GCC developers to understand whether this is a bug or a feature.