资 源 简 介
在Visual C++中使用内联汇编不需要额外的编译器和联接器,且可以处理Visual C++中不能处理的一些事情,而且可以使用在C/C++中的变量,所以非常方便。内联汇编主要用于如下场合:
1.使用汇编语言写函数;
2.对速度要求非常高的代码;
3.设备驱动程序中直接访问硬件;
4."Naked" Call的初始化和结束代码。
-used in conjunction with the compilation does not need additional compiler and connectivity devices, which can be dealt with Visual C can not handle some things that can be used in the C/C variables, so it is convenient. In conjunction with the compilation mainly for the following occasions : 1. The use of assembly language to write function; 2. The very high speed code; 3. Device driver had direct access to hardware; 4. "Naked" Call the initialization and termination code.