摘要
针对控制系统开发工程师普遍认为采用面向对象语言开发的代码效率低、不稳定的观点,论述了在面向对象编程中,在掌握编程语言的基础上同样能开发经济高效的代码,并通过试验比较目前最常用的C++和C语言开发出的代码的执行效率证实了这一点。抽象出了控制系统中常用的类,并以硬件类为例进行了详细说明。运用面向对象技术开发了高产梳棉机控制软件,软件运行可靠,证明在嵌入式控制系统中应用面向对象技术是可行的。
It is believed by many control system developers that the code developed in object-oriented language is inefficient and unstable ,the efficient code can be generated in object-oriented language when good use of the compiler' s character is made, which is approved by comparing the efficiency of code written in the wide-used C + + and C language. The commonly used class in control system is abstracted and the hardware class is discussed in detail as an example. The object-oriented technology is applied to a carding machine' s control software and the control system is proved to be rehable.
出处
《化工自动化及仪表》
EI
CAS
2006年第5期9-12,共4页
Control and Instruments in Chemical Industry
基金
国家火炬计划项目(2005EB040486)
科技型中小企业技术创新基金(03C26113200125)
关键词
面向对象
嵌入式控制系统
程序效率
控制类
object-oriented
embedded control system
program efficiency
control class