Inline assembly that clobbers the red zone

后端 未结 5 1295
迷失自我
迷失自我 2020-12-03 10:19

I\'m writing a cryptography program, and the core (a wide multiply routine) is written in x86-64 assembly, both for speed and because it extensively uses instructions like <

5条回答
  •  借酒劲吻你
    2020-12-03 11:13

    Can't you just modify your assembly function to meet the requirements of a signal in the x86-64 ABI by shifting the stack pointer by 128 bytes on entry to your function?

    Or if you are referring to the return pointer itself, put the shift into your call macro (so sub %rsp; call...)

提交回复
热议问题