Qt Creator Assembly Output

This question already has an answer here:

  • What's the purpose of the LEA instruction? 14 answers

  • LEA stands for Load Effective Address. It's used to perform an address computation, but then rather than accessing the value at that address it stores the computed address in the destination register.

    In this case, it's storing the value of EDX + (EAX * 1) into ECX. This is an alternative to the two-instruction sequence

    movl %edx, %ecx
    addl %eax, %ecx
    
    链接地址: http://www.djcxy.com/p/72368.html

    上一篇: lea指令如何获得操作数的地址?

    下一篇: Qt Creator汇编输出