Displaying 2 results from an estimated 2 matches for "c0a610db".
2012 Feb 02
0
[LLVMdev] (no subject)
Hi Umesh,
The compiler generates an alloca (stack space) for every local variable defined in a function. Along with local variables this also includes space to store the function parameters and also the variable that holds the return value.
For example:
Int x(int a, int b) {
Return a + b;
}
Would compile to something like this:
Define i32 @x(i32 %a, i32 %b) {
%ret.addr = alloca i32
2012 Feb 02
2
[LLVMdev] (no subject)
Hi Duncan,
Appreciate you response here and yeah any optimization switch for clang
will make this extra bytes go away ...Was very curious to know why these
extra bytes for and can you please elaborate more on "for storing the
return value in
more complicated cases" ...That helps me understand the LLVM internals :)
Thanks
~Umesh
On Thu, Feb 2, 2012 at 2:19 PM, Duncan Sands