Patent · US Active

Method and apparatus for code size reduction

US9122494B2 · kind B2 · utility

0Cited by
3References
10Claims
0Family size

Assignee

Inventors

Key dates

Filing dateMay 15, 2013
Grant dateSep 1, 2015
Priority date
Expiry dateApr 15, 2034

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F8/443
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A method for code size reduction, which comprises determining basic blocks in an IR module; grouping the basic blocks having duplicate code into groups; providing weighting values corresponding to different instructions of the module, wherein the weighting values are determined based on a plurality of intermediate representation program codes; determining a weighted size of the module, wherein the weighted size of the module is determined by summing weighted sizes of the basic blocks of the module, and the weighted size of each basic block is determined by summing products of numbers of different instructions of the basic blocks and the corresponding weighting values; removing duplicates in one group to obtain a module having one processed group; determining a weighted size of the module having one processed group; and comparing the weighted size of the module to the weighted size of the module having one processed group.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.