首页> 外国专利> method and arrangement for the early insert assembly language code generation macros for optimization

method and arrangement for the early insert assembly language code generation macros for optimization

机译:早期插入汇编语言代码生成宏以进行优化的方法和装置

摘要

Small assembly code routines are inlined with source code (10) prior to optimization processing in a compiler (12) in a data processing system (100). Each assembly code routine is presented to the compiler (12) in the form of a template (18) having instructions and operands. Whenever a call to the template (18) is detected by the compiler (12), the instructions and operands of the template (18) are examined by the compiler (12) to determine whether all instructions and operands in the template are recognizable by the compiler (12) for optimization processing. If so, the assembly code template (18) is virtualized by transforming physical registers to virtual registers, and the intermediate code form of the template (18) is combined with the intermediate code form of the source code (10). This combined code is then subjected to optimization procedures in the compiler (12), and the result is used to generate the assembly code (14). The assembly code from any template (18) not eligible for early inlining is later inlined with the assembly code generated by the compiler (12) after the optimization processing. IMAGE
机译:在数据处理系统(100)中的编译器(12)中进行优化处理之前,将小型汇编代码例程与源代码(10)内联。每个汇编代码例程以具有指令和操作数的模板(18)的形式呈现给编译器(12)。每当编译器(12)检测到对模板(18)的调用时,编译器(12)就会检查模板(18)的指令和操作数,以确定模板中的所有指令和操作数是否都可被模板(18)识别。编译器(12)进行优化处理。如果是这样,则通过将物理寄存器转换为虚拟寄存器来对汇编代码模板(18)进行虚拟化,并将模板(18)的中间代码形式与源代码(10)的中间代码形式组合。然后在编译器(12)中对该组合的代码进行优化程序,并且将结果用于生成汇编代码(14)。在优化处理之后,来自不适合早期内联的任何模板(18)的汇编代码随后将内联由编译器(12)生成的汇编代码。 <图像>

著录项

  • 公开/公告号DE69724322D1

    专利类型

  • 公开/公告日2003-10-02

    原文格式PDF

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

    申请/专利号DE19976024322T

  • 发明设计人 GOEBEL KURT J.;

    申请日1997-04-28

  • 分类号G06F9/45;

  • 国家 DE

  • 入库时间 2022-08-21 23:39:02

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号