首页> 外国专利> Method and Apparatus for Automatically Converting Numeric Data to a Processor Efficient Format for Performing Arithmetic Operations

Method and Apparatus for Automatically Converting Numeric Data to a Processor Efficient Format for Performing Arithmetic Operations

机译:自动将数值数据转换为处理器有效格式以执行算术运算的方法和设备

摘要

A compiler (or interpreter) detects source language instructions performing arithmetic operations using a fixed point format (preferably packed decimal). Where the operation can be performed without loss of precision or violation of other constraints of the source language, the compiler automatically converts the operands to a floating point format (preferably Decimal Floating Point (DFP)) having hardware support, and re-converts results to the original fixed point format. Preferably, the compiler may combine multiple operations and instructions in an expression tree, analyze the tree, and selectively convert where possible. The compiler preferably performs a heuristic cost judgment in determining whether to use a particular conversion.
机译:编译器(或解释器)使用定点格式(最好是压缩十进制)检测执行算术运算的源语言指令。在可以执行操作而不会损失精度或不违反源语言的其他约束的情况下,编译器会自动将操作数转换为具有硬件支持的浮点格式(最好是十进制浮点(DFP)),然后将结果重新转换为原始定点格式。优选地,编译器可以在表达式树中组合多个操作和指令,分析树,并在可能的情况下选择性地进行转换。编译器优选地在确定是否使用特定转换时执行启发式成本判断。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号