首页> 外国专利> Compiler optimization of coroutines

Compiler optimization of coroutines

机译:协程的编译器优化

摘要

As a memory usage optimization, a compiler identifies coroutines whose activation frames can be allocated on a caller's stack instead of allocating the frame on the heap. For example, when the compiler determines that a coroutine C's life cannot extend beyond the life of the routine R that first calls the coroutine C, the compiler generates code to allocate the activation frame for C on the stack of R, instead of generating code to allocate C's frame from heap memory. In some cases, as another optimization, code for coroutine C is also inlined with code for the routine R that calls C. Coroutine activation frame content variations and layout variations are also described.
机译:作为内存使用的优化,编译器会识别协程,这些协程的激活帧可以分配在调用者的堆栈上,而不是在堆上分配。例如,当编译器确定协程C的寿命不能超出首先调用协程C的例程R的寿命时,编译器生成代码以在R的堆栈上为C分配激活帧,而不是为从堆内存分配C的帧。在某些情况下,作为另一种优化,协程C的代码也与调用C的例程R的代码内联。还描述了协程激活帧的内容变化和布局变化。

著录项

  • 公开/公告号US10747511B2

    专利类型

  • 公开/公告日2020-08-18

    原文格式PDF

  • 申请/专利权人 MICROSOFT TECHNOLOGY LICENSING LLC;

    申请/专利号US201514751262

  • 发明设计人 JAMES J. RADIGAN;GOR NISHANOV;

    申请日2015-06-26

  • 分类号G06F8/41;G06F9/448;

  • 国家 US

  • 入库时间 2022-08-21 11:31:09

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号