期刊文献+

基于C语言实现的IDL编译器 被引量:5

An IDL Compiler Designed and Implemented by C Language
下载PDF
导出
摘要 对象管理组织指定的CORBA规范是分布式对象计算的中间件标准,它允许透明地访问远程对象,同时支持异构系统的互操作,其中,IDL编译器是分布式计算环境的基本开发工具。为了开发出具有高效性和可维护性的IDL编译器,文中首先提出了用C语言设计实现的IDL编译器三模块设计模式,然后讨论了IDL编译器在实现过程中所涉及到的数据结构、顶层接口、函数执行流程等,最后对文中实现的IDL编译器进行了测试。结果表明,文中设计实现的IDL编译器能成功地完成IDL到C++的转换;极大地缩减开源CORBA产品ACE/TAO(TAO:The ACE ORB)使用的IDL编译器TAO_idl编译出来的桩和框架的大小;当给常量进行赋值时,如果它们都属于数值型或者字符型,而赋值运算符两边的类型不一致时,文中设计实现的IDL编译器能极好地改善TAO_idl,在赋值时进行类型转换的问题。 The CORBA specification, which is standardized by the Object Management Group (OMG), is a middleware standard for dis tributed object computing. It allows transparently access to remote objects and supports the interoperability of heterogeneous systems. And IDL compiler is a basic development tools for the distributed computing environments. In order to develop a highefficiency and main tainable IDL compiler, firstly, explore a threemodule development model of IDL compiler. Then it discusses some technical problems such as data structures,toplevel interface and some function execution flow chart in the process of design and implementation of the compiler. At last,carry out tests. The results show that the IDL compiler designed and implemented by C can translate IDL to C++ suc cessfully, and it can reduce the size of stub and skeleton which were produced by TAO's IDL compiler. And also when it comes to assign a value to a constant variable, the IDL compiler implemented can improve the type conversion problem of TAO's IDL compiler, when two sides of the assignment operator are not the same type but both of them are numeric or character type.
作者 李颖 胡明
出处 《计算机技术与发展》 2013年第3期5-9,共5页 Computer Technology and Development
基金 中央高校基金(ZYGX2010J012)
关键词 CORBA 接口定义语言 IDL编译器 C语言 CORBA IDL IDL compiler Clanguage
  • 相关文献

参考文献11

  • 1汪芸 顾冠群.CORBA技术及其应用[M].南京:东南大学出版社,1999.2-5.
  • 2韦乐平.CORBA系统结构、原理与规范(美)[M].北京:电子工业出版社,2000.
  • 3Object Management Group. The Common Object Request Bro- ker Architecture Specification Version 2.6 [ S ]. 2001.
  • 4Object Management Group. The C++ Language Mapping Spec- ification Version 1.1 [ S ]. 2003.
  • 5韦乐平.CORBA语言映射(美)[M].北京:电子工业出版社,2001.
  • 6Henning M, Vinoski S. Advanced CORBA Programming with C++[ M]. [ s. 1. ] :Addison-Wesley,2000.
  • 7童亚拉.分布式编译的方法和系统研究[J].计算机技术与发展,2010,20(5):79-82. 被引量:4
  • 8夏铭,陆阳,盛业兴,李大勇.嵌入式数据库中利用Lex,Yacc设计SQL编译器[J].计算机技术与发展,2007,17(11):121-124. 被引量:2
  • 9刘阳,王静.编译技术原理及其实现方法[M].北京:学苑出版社,1994.
  • 10Holmes J. Building Your Own Compiler with C + + [ M ]. [ s. 1. ] :Prentice Hall, 1994.

二级参考文献14

共引文献50

同被引文献39

引证文献5

二级引证文献9

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部