Re: different asm code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 18, 2013 at 7:06 AM, horseriver <horserivers@xxxxxxxxx> wrote:
> hi:)
>
>   I have compiled a .S file ,using command gcc -c x.S -o x.
>   Then I use objdump to look up its asm code, even find that some code is not the
>   same as that .S file , more important is , some code in origin  .S file has disappear .
>
>   what is about the reason ? If it is due to version , why some code chould get lost after compile?

Give examples please.

There are several "similar"/equivalent code/instructions that the
assembler could chose from.

Ie. to zero a register, you could
1) mov REGISTER,0
2) xor REGISTER, REGISTER
3) mv REGISTER,g0 (on a SPARC where g0 is always zero)
--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux