Mail Archives: djgpp/1999/02/12/10:42:44
Paul Derbyshire <pderbysh AT usa DOT net> 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
- Raw text -