GCC inline assembly with stack operation

前端 未结 3 1628
太阳男子
太阳男子 2020-12-21 16:08

I am in need of such a inline assembly code:

  • I have a pair(so, it is balanced) of push/pop operation inside the assembly
  • I also hav
3条回答
  •  旧时难觅i
    2020-12-21 16:45

    Instead of putting the move into ecx within the assembly code, put the operand in ecx directly:

        : : "c"(foo)
    

提交回复
热议问题