首页> 外国专利> Compiler design using object technology with cross platform capability

Compiler design using object technology with cross platform capability

机译:使用具有跨平台功能的对象技术进行编译器设计

摘要

A programming language environment that includes an object compiler and associated object execution engine. The object compiler parses and converts source code into object-oriented, compiled code that is platform independent and that can be executed by the object execution engine at speeds close to that of a true compiled binary executable. The compiler parses the statements of source code and converts each statement into one or more pre-defined, persistent instruction objects. Then, it orders the instruction objects, generating a sequence of instruction objects that are stored as a platform-independent file. The instruction objects each have a virtual initialize method, a virtual execute method, and an index indicative of the next instruction object in the sequence. Data used in the statements can be represented as persistent data objects and the instruction objects and data objects can be stored in separate stacks (i.e., as linked lists), with their indices indicating their position within the stack. The memory address of each instruction object and data object is allocated dynamically at run time, with the initialize method being used to convert each index to a pointer that identifies the memory address of the next object in the stack. The execute method executes at least one machine language instruction and returns a pointer to the next instruction object. Thus, the object execution engine executes the sequence of instruction objects by calling the execute method of each instruction object and using the returned pointer to access the next instruction object.
机译:一种编程语言环境,包括对象编译器和关联的对象执行引擎。对象编译器将源代码解析并将其转换为面向平台的,与平台无关的编译代码,这些代码可由对象执行引擎以接近真正的编译二进制可执行文件的速度执行。编译器解析源代码的语句,并将每个语句转换为一个或多个预定义的持久性指令对象。然后,它对指令对象进行排序,生成一系列指令对象,这些指令对象存储为与平台无关的文件。每个指令对象具有虚拟的初始化方法,虚拟的执行方法和指示序列中的下一个指令对象的索引。语句中使用的数据可以表示为持久性数据对象,而指令对象和数据对象可以存储在单独的堆栈中(即链接列表),其索引指示它们在堆栈中的位置。每个指令对象和数据对象的内存地址在运行时动态分配,使用initialize方法将每个索引转换为标识堆栈中下一个对象的内存地址的指针。 execute方法执行至少一个机器语言指令,并返回指向下一个指令对象的指针。因此,对象执行引擎通过调用每个指令对象的execute方法并使用返回的指针访问下一个指令对象来执行指令对象序列。

著录项

  • 公开/公告号US6305009B1

    专利类型

  • 公开/公告日2001-10-16

    原文格式PDF

  • 申请/专利权人 GOOR ROBERT M.;

    申请/专利号US19980204583

  • 发明设计人 ROBERT M. GOOR;

    申请日1998-12-03

  • 分类号G06F94/45;

  • 国家 US

  • 入库时间 2022-08-22 01:03:02

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号