Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Paul Derbyshire , djgpp AT delorie DOT com Date: Fri, 12 Feb 1999 12:44:04 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Asm question In-reply-to: <3.0.6.32.19990212092623.00840750@pop.netaddress.com> X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp AT delorie DOT com Paul Derbyshire wrote: > I notice gcc zeroes eax using > > > xorl %eax, %eax > > rather than > > movl $0, %eax > > Is the xorl faster or more pipelinable or something? Seems > counterintuitive. :-) Needs less bytes, movl needs the 32 bits for the 0 plus the opcode. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013