Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pointless instruction?

Name: Anonymous 2010-04-26 13:49

What does this x86 assembler instruction do?

lea  eax, [eax+0]

AFAIK this has no effect. Then what the hell did GCC generate this for? (in /O3 mode!)

Name: Anonymous 2010-04-26 18:56

Then what the hell did GCC generate this for?
Behold, the imperfections of compiler-generated code.

MSVC and ICC tends to be a little better though.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List