首页> 外国专利> Apparatus for executing a plurality of program segments having different object code types in a single program or processor environment

Apparatus for executing a plurality of program segments having different object code types in a single program or processor environment

机译:用于在单个程序或处理器环境中执行具有不同目标代码类型的多个程序段的设备

摘要

The invention provides a method and apparatus for switching between execution of a plurality of object code types having different conventions for invoking program procedures and performing stack manipulations. The invention may also be used to switch between different calling conventions within a single object code type. Briefly according to the invention, a computer system comprises a routine descriptor, a stack switch frame, a mode switching mechanism for switching from a first processor, code or calling convention type to a second processor, code or calling convention type and means for executing instructions in various code types.;A routine descriptor describes a program or code segment and its code type and calling conventions. A routine descriptor contains, among other information, a “mixed mode” field which is set to a specific, predetermined value such as a value indicating an instruction which is not legal in the runtime environment of a first processor, code or calling convention type. When that instruction is encountered, control is transferred to the mode switching mechanism. A routine descriptor also contains a “procedure information” field which is set to a value indicating the convention for invoking a program segment and performing appropriate stack manipulations.;When a routine calls a routine having a different stack model, the mode switching mechanism uses a stack switch frame to provide a transition between the two different stack types.
机译:本发明提供了一种方法和装置,用于在具有不同约定的多个目标代码类型的执行之间进行切换,以调用程序过程并执行堆栈操作。本发明还可用于在单个目标代码类型内的不同调用约定之间切换。简要地,根据本发明,一种计算机系统包括例程描述符,堆栈切换帧,用于从第一处理器,代码或调用约定类型切换到第二处理器,代码或调用约定类型的模式切换机制以及用于执行指令的装置例程描述符描述程序或代码段及其代码类型和调用约定。例程描述符除其他信息外还包含“混合模式”。字段,该字段被设置为特定的预定值,例如指示在第一处理器的运行时环境,代码或调用约定类型中不合法的指令的值。当遇到该指令时,控制权转移到模式切换机制。例程描述符还包含“过程信息”。字段,该字段设置为一个值,该值指示调用程序段和执行适当的堆栈操作的约定。;当例程调用具有不同堆栈模型的例程时,模式切换机制使用堆栈切换框架在两者之间提供过渡不同的堆栈类型。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号