首页> 外国专利> Method and apparatus for generating executable code from object-oriented C++ source code

Method and apparatus for generating executable code from object-oriented C++ source code

机译:从面向对象的c ++源代码生成可执行代码的方法和装置

摘要

The present invention provides an improved method and apparatus for generating executable computer code for an application program written in C++ source code. In typical prior art systems, application program source code that has not itself been modified must still generally be recompiled in the event that object-oriented class definitions used by the application program and contained in separate header files have been modified. The methods and apparatus of the present invention reduce the need for such recompilation, by using procedural interfaces to implement object-oriented interfaces at the compiled code level. Thus, in accordance with the present invention, compiled header file code is generated that includes accessors for accessing object instances of the class definitions, each of the accessors being a procedure operative to access the object instances of the corresponding class definition. Compiled application program code is generated which replaces object references with procedure calls to appropriate accessors. In this way, the application program and the header file class definitions remain relatively independent of each other with respect to implementation details, even at the compiled code level.
机译:本发明提供了一种改进的方法和设备,用于为用C ++源代码编写的应用程序生成可执行计算机代码。在典型的现有技术系统中,如果已经修改了应用程序所使用的并且包含在单独的头文件中的面向对象的类定义,则通常仍必须重新编译本身没有被修改的应用程序源代码。本发明的方法和设备通过使用过程接口在编译代码级别实现面向对象的接口,减少了对这种重新编译的需求。因此,根据本发明,生成了编译的头文件代码,其包括用于访问类定义的对象实例的访问器,每个访问器是用于访问相应的类定义的对象实例的过程。生成了已编译的应用程序代码,该代码将对象引用替换为对适当访问器的过程调用。这样,即使在编译代码级别,应用程序和头文件类定义在实现细节方面也保持相对独立。

著录项

  • 公开/公告号EP0752650A3

    专利类型

  • 公开/公告日1999-03-17

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号EP19960304349

  • 发明设计人 ROSE JOHN R.;GRAMLICH WAYNE C.;

    申请日1996-06-10

  • 分类号G06F9/45;G06F9/445;

  • 国家 EP

  • 入库时间 2022-08-22 02:20:00

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号