我们可以在 visual studio 中使用这样的东西:
__asm
{
mov x1,offset thunk_begin;
mov x2,offset thunk_end;
}
但引用自here :
Since Visual Studio does not recognize assembly code, Visual Studio will have to be told what program to call to compile the assembly code.
我真的很困惑。
最佳答案
那是指独立的程序集源文件,而不是内联 asm,您的示例就是这样。
关于c - 为什么visual studio能识别__asm{}却不能识别汇编代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3706768/