如果您希望在使用Intel编译器编译C++时编写内联汇编,您需要使用哪种汇编语法?是FASM/NASM还是MASM?这是否取决于您所在的操作系统(或者Intel编译器是否抽象了这种差异)?
Inline Assembly
Microsoft* Style Inline Assembly
The Intel® C++ Compiler supports Microsoft-style inline assembly. See the Microsoft documentation for the proper syntax.
GNU*-like Style Inline Assembly (IA-32 architecture and Intel® 64 architecture only)
The Intel® C++ Compiler supports GNU-like style inline assembly. The syntax is as follows:
asm-keyword [ volatile-keyword ] ( asm-template [ asm-interface ] ) ;
NOTE
The Intel® C++ Compiler supports gcc-style inline ASM if the assembler code uses AT&T* System V/386 syntax.