Invention Grant
- Patent Title: Code-size aware function specialization
-
Application No.: US15268014Application Date: 2016-09-16
-
Publication No.: US10152311B2Publication Date: 2018-12-11
- Inventor: Tobias Edler Von Koch
- Applicant: Qualcomm Innovation Center, Inc.
- Applicant Address: US CA San Diego
- Assignee: QUALCOMM Innovation Center, Inc.
- Current Assignee: QUALCOMM Innovation Center, Inc.
- Current Assignee Address: US CA San Diego
- Agency: Neugeboren O'Dowd PC
- Main IPC: G06F8/41
- IPC: G06F8/41

Abstract:
A method for compiling software code comprises scanning call sites within the code to identify a function that is called with at least one constant argument and creating a list of each call site associated with the function and sets of constant arguments passed to the function. If any common subsets of the constant arguments are shared across a plurality of call sites, a size of the function is estimated. selecting any sets of constant arguments that are used only in one call site. The sizes of specialized functions covering sets of constant arguments that are used in only one call site is estimated. The method comprises creating a first set of specialized versions of the function covering one or more sets of constant arguments that are used in only one call site, and if any common subsets of the constant arguments exist, creating a second set of specialized versions of the function.
Public/Granted literature
- US20170242670A1 CODE-SIZE AWARE FUNCTION SPECIALIZATION Public/Granted day:2017-08-24
Information query