首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 890 毫秒
1.
中间表示技术是高质量可重定目标编译器开发中的关键技术。针对嵌入式软件危机 ,提出了一种基于抽象语法描述的中间表示技术 AIR。AIR以代数数据类型为主体 ,并用面向对象特征对其进行扩展。在这种中间表示技术中 ,通过使用不受限制的高级中间表示 ,可充分利用现有的前端。通过这种语法能对现有中间表示提供自然编码的抽象中间表示 ,提高了编译成份的可复用性和互操作性 ,简化了编译基础设施的建构 ,进一步实现了高质量编译器的快速开发  相似文献   

2.
设计并实现了一个面向教学的类C编译器,支持全局或局部变量的定义、函数参数传递和函数递归调用.为避免对实际硬件体系结构的依赖,采用了Java语言的设计思想,类C编译器实现了先编译后解释执行的设计方案,同时给出了比文法更为直观的类C语言的语法图.  相似文献   

3.
COC++ 编译器面向对象技术的实现   总被引:2,自引:1,他引:2  
COC++编译器的功能是将C++源程序转换为等价的C程序。COC++编译器不是使用传统的构造方法而是采用面向对象的设计技术,将相应成分如符号表,语法分析等模块封装为类,并以C++语言实现。符号表类封装符号表及其建立、登录、查找等操作。基于C++的作用域规则,COC++编译器为每个作用域中的符号建立一个符合表,利用指针链指明嵌套关系和继承关系。语法分析的模块设计为一个抽象类,定义所有语法成分类的公共特性和公共接口。实际的分析工作和语义处理工作通过C++语言的多态机制由相应的派生类各自的成员函数实现。这样类化的编译结构不会因为增加某些语言成分而做很大的改动。阐述了面向对象的技术用于编译系统的设计和开发的特点。  相似文献   

4.
基于三层分治结构的领域类库模型设计   总被引:2,自引:1,他引:1  
针对中轻量级领域类库构造中,缺乏构造技术支持及管理维护机制不完善的问题,提出了三层分治结构(Triple—Commune Architecture)的领域类库模型,从类部件的功能特征和应用层面,对类库进行横向分类和纵向划分,确定其结构组织形式;采用同源类链式继承机制,解决类库的扩展及版本升级问题;利用自定义的类部件形式化描述语言,对类库进行形式化描述,对类部件的属性、方法、关系以及其他相关信息进行定义,从而完成类库的维护和管理.在ERP类库原型系统研发中表明该模型提高了软件复用和开发的效率.  相似文献   

5.
编译器前端构造工具及JLUCC的实现   总被引:2,自引:0,他引:2  
针对多种典型的编译器构造工具存在对文法有限制、嵌入式语义动作有负面影响,目标语言单一和调试维护困难等一些问题,设计并实现了一种新的编译器构造工具--JLUCC(Jilin University Compiler Compil-er).JLUCC使用Earley分析方法,结合反射、面向对象和设计模式等技术,具有词法分析器、语法分析器、抽象语法树和遍历工具等编译器模块的自动生成功能,可以支持任意上下文无关文法、多遍处理和对目标语言的扩展.其功能强大、使用方便、便于维护和扩展,具有广阔的应用前景.展望了未来编译器构造工具的发展趋势.  相似文献   

6.
OMG IDL编译器的构造   总被引:1,自引:0,他引:1  
研究了OMGIDL编译器构造中各阶段的主要路线,介绍了词法分析阶段的文件包含,宏定义与宏展开,条件编译这三类预处理宏的解析方法,语法分析阶段的抽象语法树设计,语法树构造及在语法树构造过程中进行IDL名字空间约束的静态语义检查,在低码生成阶段,通过分析分布计算的简要过程,对远程调用参数及结果的传递代码,调用派遣代码的生成环节进行了讨论。  相似文献   

7.
在简要分析GALIL运动控制指令语法规则的基础上,阐述自主研发的客户端运动控制指令程序编译器的基本思想和设计流程.从词法分析、语法分析、整合处理、语义分析和后期处理诸方面详述了编译器的实现原理和方法,并给出了正确的实验结果.  相似文献   

8.
简要介绍了VHDL语言的发展,详细讨论了VHDL语言编译器的设计;对预处理、词法分析、文法处理、语法分析、语义分析、出错处理6个模块进行了介绍,同时设计了源描述编译的中间数据格式。  相似文献   

9.
编译器词法分析程序可通过高级语言手工编写,也可使用工具自动生成,正确理解2种生成方法的实质及区别,对于正确理解程序设计语言编译器的构造原理及编译原理课程的教学具有重要意义。  相似文献   

10.
为了增强系统的健壮性,许多程序设计语言引入了异常处理机制.人们在研究Java编译器的过程中,发现异常结构降低了编译器的效率.为了减小异常结构对编译器的负面影响,结合Java异常结构的特点,提出了一种使用G树代替传统的语法分析树的方法,不仅提高了语法分析的效率,而且能够生成比较简练的Java字节码.  相似文献   

11.
Language markedness is a common phenomenon in languages, and is reflected from hearing, vision and sense, i.e. the variation in the three aspects such as phonology, morphology and semantics. This paper focuses on the interpretation of markedness in language use following the three perspectives, i.e. pragmatic interpretation, psychological interpretation and cognitive interpretation, with an aim to define the function of markedness.  相似文献   

12.
何延凌 《科技信息》2008,(4):258-258
Language is a means of verbal communication. People use language to communicate with each other. In the society, no two speakers are exactly alike in the way of speaking. Some differences are due to age, gender, statue and personality. Above all, gender is one of the obvious reasons. The writer of this paper tries to describe the features of women's language from these perspectives: pronunciation, intonation, diction, subjects, grammar and discourse. From the discussion of the features of women's language, more attention should be paid to language use in social context. What's more, the linguistic phenomena in a speaking community can be understood more thoroughly.  相似文献   

13.
理论推导与室内实验相结合,建立了低渗透非均质砂岩油藏启动压力梯度确定方法。首先借助油藏流场与电场相似的原理,推导了非均质砂岩油藏启动压力梯度计算公式。其次基于稳定流实验方法,建立了非均质砂岩油藏启动压力梯度测试方法。结果表明:低渗透非均质砂岩油藏的启动压力梯度确定遵循两个等效原则。平面非均质油藏的启动压力梯度等于各级渗透率段的启动压力梯度关于长度的加权平均;纵向非均质油藏的启动压力梯度等于各渗透率层的启动压力梯度关于渗透率与渗流面积乘积的加权平均。研究成果可用于有效指导低渗透非均质砂岩油藏的合理井距确定,促进该类油藏的高效开发。  相似文献   

14.
As an American modern novelist who were famous in the literary world, Hemingway was not a person who always followed the trend but a sharp observer. At the same time, he was a tragedy maestro, he paid great attention on existence, fate and end-result. The dramatis personae's tragedy of his works was an extreme limit by all means tragedy on the meaning of fearless challenge that failed. The beauty of tragedy was not produced on the destruction of life, but now this kind of value was in the impact activity. They performed for the reader about the tragedy on challenging for the limit and the death.  相似文献   

15.
正The periodicity of the elements and the non-reactivity of the inner-shell electrons are two related principles of chemistry,rooted in the atomic shell structure.Within compounds,Group I elements,for example,invariably assume the+1 oxidation state,and their chemical properties differ completely from those of the p-block elements.These general rules govern our understanding of chemical structures and reactions.Using first principles calcula-  相似文献   

16.
We have developed an adiabatic connection to formulate the ground-state exchange-correlation energy in terms of pairing matrix linear fluctuations.This formulation of the exchange-correlation energy opens a new channel for density functional approximations based on the many-body perturbation theory.We illustrate the potential of such approaches with an approximation based on the particle-particle Random Phase Approximation(pp-RPA).This re-  相似文献   

17.
正The electronic and nuclear(structural/vibrational)response of 1D-3D nanoscale systems to electric fields gives rise to a host of optical,mechanical,spectral,etc.properties that are of high theoretical and applied interest.Due to the computational difficulty of treating such large systems it is convenient to model them as infinite and periodic(at least,in first approximation).The fundamental theoretical/computational problem in doing so is that  相似文献   

18.
<正>"The Journal of Shanghai Normal University:Mathematics"is published by Shanghai Normal University as regular issues of The Journal of Shanghai Normal University each year from 2014 in English.The editors-in-chief of the issues are professors Yuhao Cong and Maoan Han.The Journal of Shanghai Normal University was started in 1958 with  相似文献   

19.
20.
<正>"Journal of Jilin University(Science Edition)"is a comprehensive academic journal in the fields of science sponsored by Jilin University and administrated by the Ministry of Education of the Peoples Republic of China.The journal started publication in 1955.The original name at starting publication was"Journal of Natural Science of Northeast People University",which was changed into"Acta Scientiarum Naturalium Universitatis Jilinensis"in 1958 owing to the name change of the university.The present journal name has  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

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