c - 为什么visual studio能识别__asm{}却不能识别汇编代码?

标签 c visual-studio assembly

我们可以在 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/

相关文章:

c - C 中一条语句中的自增和自减运算符

将 16 字节 IPv6 转换为冒号分隔的字符串

c# - 我如何将图像存储在类库中并从任何类访问它

c# - Visual Studio 2015 SQL Server Data Tools 缺少 "Add Table"选项

assembly - 如何在屏幕上显示一个数字并使用 DOS x86 程序集休眠一秒钟?

c - 反转中缀表达式中的运算符优先级

C Scanf 循环

c# - 从内存中删除项目/页面/用户控件

assembly - NEON 汇编手册/GNU 汇编器教程

assembly - 使用按位运算将 Int 转换为 Float 或 Float 为 Int(软件浮点)