Invention Grant
- Patent Title: Compile-time folding of assumed constant values
-
Application No.: US16204594Application Date: 2018-11-29
-
Publication No.: US10936290B2Publication Date: 2021-03-02
- Inventor: Andrew James Craik , Nicholas James Coughlin , Graham Alan Chapman , Daniel Heidinga
- 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
- Agency: Roberts Calderon Safran & Cole, P.C.
- Agent Michael O'Keefe; Andrew D. Wright
- Main IPC: G06F8/41
- IPC: G06F8/41 ; G06F9/455

Abstract:
A computer-implemented method includes: selecting, by a computer device, a set of fields in a program which are marked as final fields to be treated as constants; adding, by the computer device, detection logic to the program, the detection logic including a process that detects writes to the final fields to be treated as constants; compiling, by the computer device, the program into compiled code; executing, by the computer device, the compiled code; detecting, by the computer device, a write to a first one of the final fields to be treated as constants; and transitioning, by the computer device, execution of the compiled code from the compiled code to an interpreter for processing by compensation code that operates on the first one of the final fields to be treated as constants.
Public/Granted literature
- US20200174763A1 COMPILE-TIME FOLDING OF ASSUMED CONSTANT VALUES Public/Granted day:2020-06-04
Information query