期刊文献+

C语言的ROM化程序设计方法

A Method of Storing C-Language Programs in a Erasable Programmable Read-Only Memory(EPROM)
下载PDF
导出
摘要 提出了一种在 IBM PC 机上应用 C 语言开发8086/8088系列微处理器控制软件的方法,实现了 C 语言在无操作系统的“裸机”上的运行.本方法的应用,可以减轻程编工作量,加快产品开发周期. In a computer-controlled equipment,the control program is usually stored in an EPROM. Traditionally,the program is written in assembly language,or in high-level languages.In the latter case, the program is transformed through cross compiling into the executable binary codes and stored in the EPROM.It is well known that the programming efficiency and the portability of high-level languages are much higher than those of the assembly language,but a problem is raised of the high cost for the hard- ware of the development system. As reported,the control programs could also be written with C-language on a personal computer (PC) with the Disk Operating System(DOS),compiled through the compiler Microsoft C 5.0,and finally be linked to form the executable programs by the LINK(a linker in the DOS).The advantage of this method is that all the programs developed at the PC can run in a control computer only if the latter has DOS in its EPROM.But the cost of the hard-ware is still high. In this paper it was suggested to modify the executable file to form a binary-coded file which could run directly in the control computer without DOS,and to store the file in the EPROM;a branch instruc- tion was triggered to start the control program when the control computer was switched on.A new program of creating 3-dimensional curved surface(about 30 kilobytes) was written for this purpose and stored in the EPROM.It was shown to run satisfactorily in the computer of STD bus without DOS.This method was proved to be feasible by applying it to newly developed CNC system.
作者 董旌 彭炎午
机构地区 西北工业大学
出处 《西北工业大学学报》 EI CAS CSCD 北大核心 1993年第4期431-435,共5页 Journal of Northwestern Polytechnical University
关键词 工业控制 C语言 ROM化 程序设计 C-Language EPROM(Erasable Programmable Read-Only Memory)
  • 相关文献

参考文献4

  • 1董旌,1991年
  • 2宋丽萍,1988年
  • 3张载鸿,DOS高级技术分析,1988年
  • 4贺志强,1987年

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部