Bug in TC2.0 Optimization

Joe Huffman joe at proto.com
Mon May 6 09:35:26 AEST 1991


nevries at cs.ruu.nl (Nico de Vries) writes:

>On 8086 and 80286 processors xor dx,dx is in most cases faster than
>mov dx, 0h. On 80386 and i486 there is no reel reason to do this any more
>by the way.

Code size is smaller with either xor  dx,dx  or sub  dx,dx than with
mov dx,0.  Especially when in 386 native mode -- mov edx,0 uses 4 bytes for
the constant 0.
-- 
joe at proto.com



More information about the Comp.lang.c mailing list