首页> 外国专利> Code-size aware function specialization

Code-size aware function specialization

机译:代码大小感知功能专业化

摘要

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.
机译:一种用于编译软件代码的方法,该方法包括:扫描代码内的调用站点,以识别使用至少一个常量参数调用的函数,并创建与该函数相关联的每个调用站点的列表以及传递给该函数的常量参数集。如果在多个调用站点之间共享常量参数的任何公共子集,则将估算函数的大小。选择仅在一个调用站点中使用的任何一组常量参数。估计仅在一个调用站点中使用的,覆盖一组常量参数的专用函数的大小。该方法包括创建覆盖仅在一个调用站点中使用的一组或多组常量参数的函数的第一组专用版本,并且如果存在常量参数的任何常见子集,则创建该函数的第二组专用版本。功能。

著录项

  • 公开/公告号US10152311B2

    专利类型

  • 公开/公告日2018-12-11

    原文格式PDF

  • 申请/专利权人 QUALCOMM INNOVATION CENTER INC.;

    申请/专利号US201615268014

  • 发明设计人 TOBIAS EDLER VON KOCH;

    申请日2016-09-16

  • 分类号G06F8/41;

  • 国家 US

  • 入库时间 2022-08-21 12:14:48

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号