assembly leal and movl difference [duplicate]
问题 This question already has answers here : Using LEA on values that aren't addresses / pointers? (3 answers) Closed 2 years ago . leal(%eax,%ecx,4), %edx as I was reading from my computer systems book, if there`s premises that $eax contains x value and %ecx contains y, then the above means, x+4y putting into %edx. then if it is movl(%eax,%ecx,4), %edx , then isn`t the same one with leal expression above? As I know, leal creates address that can be referenced,not referencing by itself like movl,