检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:任杰[1] 阳昕[1] 石磊[2] 陈渝[1] 杨维康[1]
机构地区:[1]清华大学计算机科学与技术系,北京100084 [2]武警工程学院基础部,西安710086
出 处:《计算机工程》2008年第9期93-94,97,共3页Computer Engineering
基 金:国家“863”计划基金资助项目“面向普适计算的自适应软件集成环境”(2006AA01Z198);清华大学信息科学与技术国家实验室基础研究基金资助项目“面向普适计算的构件化基础软件平台”
摘 要:对面向对象的C编译器(OCC)的整体设计进行介绍。OCC以抽象语法树为中间表达形式。语法树节点分为8大类86种,降在采用visitor设计模式进行语意分析时节点功能的耦合度。OCC用简易的垃圾回收器解决了语法树节点动态分配和销毁时的内存泄题。OCC的类型分析模块针对类型声明中9个不同组成部分采用7种处理方式,降低了属性文法脚本的维护难度。The architecture of the C compiler OCC is introduced. The Abstract Syntax Tree(AST) served as the intermediate representation, of which the 86 different nodes are grouped into 8 categories and the coupling degree of the semantic analysis with the visitor design pattern is reduced. The memory leak problem during the dynamic allocation and destruction of abstract syntax tree nodes is solved using a simple garbage collector. A type builder module gives 7 different treatments to 9 parts of the type specification, which ease the maintenance problem of the attribute grammar script.
分 类 号:TP314[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.145