Invention Grant
- Patent Title: Method for optimizing binary code in language having access to binary coded decimal variable, and computer and computer program
-
Application No.: US15016510Application Date: 2016-02-05
-
Publication No.: US09858054B2Publication Date: 2018-01-02
- Inventor: Toshihiko Koju , Ali I Sheikh
- Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Applicant Address: US NY Armonk
- Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee Address: US NY Armonk
- Agent Rabin Bhattacharya
- Priority: JP2013-086606 20130417
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
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.
Public/Granted literature
Information query