摘要
目前C语言已成为开发单片机项目的主要工具,但一些特殊的应用场合仍然需要汇编语言编写程序,如编写时序要求非常严格的接口协议时,这必然涉及到C与汇编的相互调用,即混合编程的问题.详细介绍了KEILC51环境下的C和汇编语言相互调用的方法和原则,并具体说明混合编程的细节和应注意的问题.
In recent years,C language has become to develop the main tool of development microcontrollers, but in some special applications the assembly language programming is still needed. For example, Writing some interface protocols that request very strict time sequence. It must involve calling assembly routine from C program. That is mixed programming problems. The methods and principles of C and assembly language calling each other in KEIL C51 compiler are introduced in detail. Furthermore, the specification of mixed programming and the issues which should be paid more attention are elaborated through three specific examples.
出处
《兰州交通大学学报》
CAS
2008年第1期131-134,共4页
Journal of Lanzhou Jiaotong University