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

基于C语言的AOP编织器的设计与实现
引用本文:葛峰,张云华,赵国平. 基于C语言的AOP编织器的设计与实现[J]. 计算机应用与软件, 2008, 25(12)
作者姓名:葛峰  张云华  赵国平
作者单位:浙江理工大学信息电子学院,浙江,杭州,310018
摘    要:在C语言开发的实时系统中因为缺乏可用的AOP编织器,所以在系统里无法应用AOP技术来弥补OOP技术的不足。讨论一个用于实时控制系统的C语言的AOP编织器的设计与实现。编织器分为两个部分,预编译部分通过词法与语法分析来解析Aspect代码,并将其代码符号存储在符号表中;第二部分中间代码生成将以符号表为基础,将Aspect代码转换成与原代码混合的中间代码,最后由C语言编译器编译生成最后的代码,从而达到编织的目的。

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

DESIGN AND IMPLEMENTATION OF AOP WEAVER BASED ON C LANGUAGE
Ge Feng,Zhang Yunhua,Zhao Guoping. DESIGN AND IMPLEMENTATION OF AOP WEAVER BASED ON C LANGUAGE[J]. Computer Applications and Software, 2008, 25(12)
Authors:Ge Feng  Zhang Yunhua  Zhao Guoping
Affiliation:Ge Feng Zhang Yunhua Zhao Guoping(School of Information , Electron,Zhejiang Sci-Tech University,Hangzhou 310018,Zhejiang,China)
Abstract: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...
Keywords:AOP
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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