can an object be allocated on the stack?

Garcia Gutierrez Miguel Alfredo miguelalfredo.garcia at
Tue Jul 30 06:00:26 PDT 2013

Sometimes it's safe to allocate an object on the stack, for example for the cases covered in Ch. 5 of

Can the Graal IR express such code idioms?

(I guess not, because if so then it would be possible to have a method return a struct, ie just let the caller allocate it on the stack and have the callee modify it via address + offset, the callee itself may be void-returning).

Or is it?


Miguel Garcia
Swiss Federal Institute of Technology
EPFL - IC - LAMP1 - INR 328 - Station 14
CH-1015 Lausanne - Switzerland

More information about the graal-dev mailing list