检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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.
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.229