发明名称 |
CONDITIONAL STACK FRAME ALLOCATION |
摘要 |
A method for allocating memory includes an operation that determines whether a prototype of a callee function is within a scope of a caller. The caller is a module containing a function call to the callee function. In addition, the method includes determining whether the function call includes one or more unnamed parameters when a prototype of the callee function is within the scope of the caller. Further, the method may include inserting instructions in the caller to allocate a register save area in a memory when it is determined that the function call includes one or more unnamed parameters. |
申请公布号 |
US2017090812(A1) |
申请公布日期 |
2017.03.30 |
申请号 |
US201615375571 |
申请日期 |
2016.12.12 |
申请人 |
International Business Machines Corporation |
发明人 |
Gschwind Michael Karl;McIntosh Ronald I.;Weigand Ulrich |
分类号 |
G06F3/06;G06F9/50 |
主分类号 |
G06F3/06 |
代理机构 |
|
代理人 |
|
主权项 |
1. A computer-implemented method for allocating memory, comprising:
determining whether a prototype of a callee function is within a scope of a caller, the caller being a module containing a function call to the callee function; when a prototype of the callee function is within the scope of the caller, determining whether the function call includes one or more unnamed parameters; and inserting instructions in the caller to allocate a register save area in a memory when it is determined that the function call includes one or more unnamed parameters. |
地址 |
Armonk NY US |