Function attribute for dynamic stack allocation
US9250878B1 · kind B1 · utility
Assignee
Inventor
Key dates
| Filing date | Nov 24, 2014 |
| Grant date | Feb 2, 2016 |
| Priority date | — |
| Expiry date | Nov 24, 2034 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F8/4434
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A method includes receiving, by a processing device executing a compiler, source code of a function associated with a compiler prompt, in which the function includes at least one variable to be allocated in a memory space on a stack, determining that the compiler prompt indicates to retain at least a portion of the allocated memory space on the stack after execution of the function, and compiling, in view of the compiler prompt, the source code to generate a prologue function and an epilogue function associated with execution of the function, in which the prologue function is to allocate the memory space for the function, and at least one of the prologue function or the epilogue function is to cause to retain the at least a portion of the allocated memory space on the stack after the execution of the function.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.