首页 | 本学科首页   官方微博 | 高级检索  
     

嵌入式C语言中的面向对象与多线程编程
引用本文:茅胜荣,肖家文,乔东海.嵌入式C语言中的面向对象与多线程编程[J].单片机与嵌入式系统应用,2017,17(5).
作者姓名:茅胜荣  肖家文  乔东海
作者单位:苏州大学 电子信息学院,苏州,215006
摘    要:面向对象与多线程编程的诞生大大提高了软件开发的效率,降低了开发复杂应用的难度,但在一些小型的嵌入式系统中很难得到应用,其中最重要的限制因素就是微控制器的代码空间有限,使得适用于计算机的软件架构不适合嵌入式设备.本文将介绍一种能够使用在嵌入式场合的面向对象与多线程的编程机制,通过构造特殊的宏定义来模拟面向对象和多线程编程的软件环境,开销小,效率高.以此为基础进行二次开发的软件代码可读性和移植性更好,可以加快嵌入式软件的更新与迭代.

关 键 词:嵌入式系统  C语言  面向对象  多线程

Object-oriented and Multi-thread Programming in Embedded C Language
Mao Shengrong,Xiao Jiawen,Qiao Donghai.Object-oriented and Multi-thread Programming in Embedded C Language[J].Microcontrollers & Embedded Systems,2017,17(5).
Authors:Mao Shengrong  Xiao Jiawen  Qiao Donghai
Abstract:Object-oriented and multi-thread programming greatly enhance the efficiency of software development,and reduce the difficulty to develop complex applications,but it is difficult to apply in some small embedded systems.The most important constraint is the small space of microcontroller and the software architecture which is suitable for computer but unfit for embedded devices.In the paper,an object-oriented and multi-thread programming mechanism is introduced which can be used in the embedded environment.By constructing special macro definitions,the object-oriented and multi-thread ideology can be simulated,which is known for low overhead and high efficiency.Using this construction,the software will have higher code readability and portability,so that we can accelerate the upgrade and iteration of the embedded software.
Keywords:embedded system  C language  object-oriented  multi-thread
本文献已被 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号