首页> 外国专利> Automatically transform pass-by-value semantics into pass-by-reference implementation

Automatically transform pass-by-value semantics into pass-by-reference implementation

机译:自动将按值传递语义转换为按引用传递实现

摘要

System and method for compiling a program, including determining one or more program structures containing one or more variables at the entry and exit of each program structure, wherein each variable specifies a value transfer operation of one or more source variables to a destination variable between outside the program structure and inside the program structure. A subset of the destination variables may be determined for which assigning the destination variable to a memory resource of a corresponding source variable does not disrupt the functionality of the program. Implementation of the value transfer operations may be executable to map each of the determined subset of destination variables to a respective memory resource. The mapping may be dynamically changed, thereby transferring the value from the first source variable to the destination variable without copying the value between the memory resources.
机译:用于编译程序的系统和方法,包括确定在每个程序结构的入口和出口处包含一个或多个变量的一个或多个程序结构,其中每个变量指定一个或多个源变量到外部变量之间的目标变量的值传递操作程序结构和程序内部结构。可以确定目标变量的子集,为此将目标变量分配给相应源变量的存储资源不会破坏程序的功能。值传递操作的实现可以是可执行的,以将所确定的目的地变量的每个子集映射到相应的存储器资源。可以动态改变映射,从而将值从第一源变量传递到目标变量,而无需在存储器资源之间复制该值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号