期刊文献+

针对C语言的面向方面语言设计与实现 被引量:6

Design and Implementation of Aspect-Oriented Language for C Language
下载PDF
导出
摘要 C语言是使用率仅次于Java的编程语言,在实时控制、嵌入式系统、硬件驱动等领域有着广泛的应用.发展自面向对象的面向方面编程(AOP)思想是对横切关注点的有效模块化方法,如何将AOP的概念引入到面向过程的C语言中,提高开发效率和代码复用率,是一个非常有实际意义的课题.针对该课题,本文设计并实现一种针对C的AOP语言MOVEC.分析了AOP的基本概念并将现有针对C的AOP语言进行了对比;设计了更加完善的针对C的AOP语言MOVEC;给出了基于开源编译器Clang和源代码插桩的M OVEC语言实现;通过实验从时间和空间效率上证明了M OVEC语言的可行性. As the second important language, C is widely used in areas such as real-time control, embedded system, hardware driver and so on. Developed from OOP, aspect-oriented programming( AOP ) is an effective modularization of cross-cutting concerns. How to introduce the AOP concept into the C language is a meaningful issue for software development and code reuse. This paper designs and implements an AOP language called MOVEC for C language. It analyzes the basic concepts of AOP and compares the existing AOP languages for C, designs a better AOP language called MOVEC for C,implements MOVEC based on Clang compiler and source code instrumentation, and finally proves its feasibility by experiments of time and space efficiency.
出处 《小型微型计算机系统》 CSCD 北大核心 2016年第12期2679-2684,共6页 Journal of Chinese Computer Systems
基金 国家自然科学基金项目(61100034)资助 国家自然科学基金委员会-中国民航局民航联合研究基金项目(U1533130)资助 教育部留学回国人员科研启动基金项目(2013)资助 中央高校基本科研业务费专项资金项目(NS2016092)资助
关键词 C语言 面向方面 Clang 源代码 C language AOP Clang source code
  • 相关文献

参考文献1

二级参考文献4

同被引文献29

引证文献6

二级引证文献19

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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