摘要
对象管理组织指定的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)