首页>
外国专利>
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.
展开▼