基于C语言的AOP编织器的设计与实现  被引量:2

DESIGN AND IMPLEMENTATION OF AOP WEAVER BASED ON C LANGUAGE

在线阅读下载全文

作  者:葛峰[1] 张云华[1] 赵国平[1] 

机构地区:[1]浙江理工大学信息电子学院,浙江杭州310018

出  处:《计算机应用与软件》2008年第12期161-163,共3页Computer Applications and Software

摘  要:在C语言开发的实时系统中因为缺乏可用的AOP编织器,所以在系统里无法应用AOP技术来弥补OOP技术的不足。讨论一个用于实时控制系统的C语言的AOP编织器的设计与实现。编织器分为两个部分,预编译部分通过词法与语法分析来解析Aspect代码,并将其代码符号存储在符号表中;第二部分中间代码生成将以符号表为基础,将Aspect代码转换成与原代码混合的中间代码,最后由C语言编译器编译生成最后的代码,从而达到编织的目的。In real-time system of C language development,the deficiency in OOP technique is not able to be made up by AOP technique due to lacking of an available AOP Weaver. In this paper the design and implementation of the AOP Weaver of C language used in real-time system is discussed. The Weaver System has two sections. The pre-compiling section parses the Aspect Code according to the accidence and syntax, and deposits the code symbol in symbol table. In second section it generates intermediate code on the basis of the symbol table by translating Aspect code into intermediate code which is blended with the source code, and at last generates the final code compiled by C language complier, and the goal of weaving is then achieved.

关 键 词:C语言 AOP 编织器 预编译 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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