Please download the dossier by clicking on the dossier button x
×

COMPILER OPTIMIZATION OF COROUTINES

  • US 20160321045A1
  • Filed: 06/26/2015
  • Published: 11/03/2016
  • Est. Priority Date: 04/28/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for implementing a resumable function, comprising:

  • a compiler determining at compile time whether the resumable function has a lifespan that will not extend beyond a call to the resumable function made by a caller in a computing system;

    when the compiler determines that the resumable function lifespan will not extend beyond the call, the compiler generating code which upon execution will allocate an activation frame of the resumable function from a local stack memory of the caller in the computing system; and

    when the compiler determines that the resumable function lifespan can extend beyond the call, the compiler generating code which upon execution will allocate the activation frame from a heap memory in the computing system.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×