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

Design and Implementation of Aspect-Oriented Language for C Language

在线阅读下载全文

作  者:朱云龙[1,2] 陈哲[1,2] 王哲民[1,2] 李绪蓉[1,2] 黄志球[1,2] 

机构地区:[1]南京航空航天大学计算机科学与技术学院,南京210016 [2]软件新技术与产业化协同创新中心,南京210016

出  处:《小型微型计算机系统》2016年第12期2679-2684,共6页Journal of Chinese Computer Systems

基  金:国家自然科学基金项目(61100034)资助;国家自然科学基金委员会-中国民航局民航联合研究基金项目(U1533130)资助;教育部留学回国人员科研启动基金项目(2013)资助;中央高校基本科研业务费专项资金项目(NS2016092)资助

摘  要: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.

关 键 词:C语言 面向方面 Clang 源代码 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象