摘要
开发单片机程序常用汇编语言及其编译工具FranklinC51,汇编语言的缺点是不易实现较复杂的数学计算。而C语言可以提供丰富的数学计算库函数。实现汇编和C语言函数混合编程既可提高编程效率,又能容易地完成数学计算。混合编程的关键是在统一的程序接口规则下,正确地进行参数传递。文中用一个具体的混合编程实例,说明了混合编程的一种方法,即在汇编程序中调用C语言函数。
Development of single chip computer program always uses the assembler and the Franklin C 51 tools,the flaw is that it is very difficult to achieve the involved computation of maths.C language provids plentiful mathematical function.To finish the mixed procedure of assember and C language can not only raise the efficiency of programming but also accomplish computation of maths easily.The key of mixed procedure is how to achieve the impart of parameter correctly under the consolidated rule of the procedure connects.This paper uses a practical example of mixed procedure to explain a method,i.e,how to use the assembler to call C language function.
出处
《水道港口》
2004年第z1期128-130,共3页
Journal of Waterway and Harbor