摘要
介绍在不同编译程序的存储模式下,如何在C中调用汇编例程以及如何在汇编语言中调用C的函数,即混合编程的方法。可使用户掌握寄存器在程序执行过程中的内存结构变化情况,并根据寄存器的内存结构编写出执行速度更快、代码紧凑的优化代码程序。文中所有例程均在Turbo C 2.0 Compact模式下通过。
A method of mixed programming with calling assembler subroutine in C anc calling the function of C in assembler in different memory mode of compiler is introduced. The method allows the users to access the variation of internal storage structure of the registers with the program being executed and to design optimizer programs with faster executing speed and more compact codes according to the internal storage structure of register. All the subroutines listed in this paper can be executed in the Compact mode of Turbo C 2. 0.
出处
《甘肃工业大学学报》
1992年第1期91-96,共6页
Journal of Gansu University of Technology
关键词
混合编程
优化
C语言
宏汇编
mixed programming, optimization, parameter, registers, call, C subroutine, Macro assembler, return