汇编和C语言函数混合编程的一种方法 |
| |
引用本文: | 倪文军,彭刚. 汇编和C语言函数混合编程的一种方法[J]. 水道港口, 2004, 25(Z1): 128-130 |
| |
作者姓名: | 倪文军 彭刚 |
| |
作者单位: | 交通部天津水运工程科学研究所,天津300456 |
| |
摘 要: | 开发单片机程序常用汇编语言及其编译工具FranklinC51,汇编语言的缺点是不易实现较复杂的数学计算。而C语言可以提供丰富的数学计算库函数。实现汇编和C语言函数混合编程既可提高编程效率,又能容易地完成数学计算。混合编程的关键是在统一的程序接口规则下,正确地进行参数传递。文中用一个具体的混合编程实例,说明了混合编程的一种方法,即在汇编程序中调用C语言函数。
|
关 键 词: | 汇编语言 C语言 混合编程 |
文章编号: | 1005-8443(2004)S0-0128-03 |
修稿时间: | 2004-12-22 |
Assembler Language Calling C Language Function |
| |
Abstract: | 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. |
| |
Keywords: | assembler C language mixed procedure |
本文献已被 万方数据 等数据库收录! |
|