Invention Grant
US09250878B1 Function attribute for dynamic stack allocation 有权
动态堆栈分配的功能属性

Function attribute for dynamic stack allocation
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.
Information query
Patent Agency Ranking
0/0