Patent ID: 9189234
Filing Date: 2015-11-17
Classification: G06F

Abstract:
1. A method of reducing overhead in loading constants of a processor device, the method comprising the steps of: (a) preparing, by the processor device, one or more registers (hereinafter, called “constant registers”) for loading constants; (b) creating, by the processor device, a plurality of candidates of constants to be stored in the one or more constant registers based on constants used in a program code of a current compilation scope; (c) estimating, by the processor device, an effect of the overhead reduction by generation of a constant used in the program code by using a candidate of constant, for each of the plurality of candidates of constants; (d) determining, by the processor device, base constants to be loaded on the one or more constant registers based on the effect estimated for each of the plurality of candidates of constants; and (e) loading, by the processor device, for the program code, the base constants on the one or more constant registers at an entry point of the program code and using values of the constant registers to generate codes for generating constants used in the program code.