首页> 外国专利> METHOD FOR OPTIMIZING BINARY CODE IN LANGUAGE HAVING ACCESS TO BINARY CODED DECIMAL VARIABLE, AND COMPUTER AND COMPUTER PROGRAM

METHOD FOR OPTIMIZING BINARY CODE IN LANGUAGE HAVING ACCESS TO BINARY CODED DECIMAL VARIABLE, AND COMPUTER AND COMPUTER PROGRAM

机译:可访问二进制编码的十进制变量的语言中的二进制代码的优化方法,计算机和计算机程序

摘要

A method for optimizing binary code in a language having access to binary coded decimal variable. The method includes: generating a first compiler expression of the binary code; analyzing a use-definition and/or a definition-use for the first compiler expression; generating a second compiler expression by identifying logical binary coded decimal (BCD) variables in the first compiler expression; assigning temporary variables to the logical BCD variables, wherein the second compiler expression includes packed decimal operations and the assigned temporary variables; and converting a packed decimal operation in the second compiler expression and an assigned temporary variable to a decimal floating point (DFP) if sign information and precision information are not lost during conversion from BCD to DFP, wherein identifying logical BCD variables includes: in the use-definition and/or definition-use of operands, regarding an operand of definition and an operand of use as the same logical BCD variables.
机译:一种用于以可访问二进制编码的十进制变量的语言优化二进制代码的方法。该方法包括:生成二进制代码的第一编译器表达式;以及分析第一编译器表达式的使用定义和/或定义使用;通过在第一编译器表达式中识别逻辑二进制编码的十进制(BCD)变量来生成第二编译器表达式;向逻辑BCD变量分配临时变量,其中第二编译器表达式包括压缩十进制运算和分配的临时变量;如果在从BCD到DFP的转换过程中没有丢失符号信息和精度信息,则将第二编译器表达式中的压缩十进制运算和分配的临时变量转换为十进制浮点数(DFP),其中,标识逻辑BCD变量包括:定义和/或定义使用操作数,将定义的操作数和使用的操作数视为相同的逻辑BCD变量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号