search for: funclarge

Displaying 1 result from an estimated 1 matches for "funclarge".

Did you mean: func_args
2010 Aug 15
0
[LLVMdev] Alloca management responsiblity
Hi, Consider this code: *** typedef struct _largestruct { char a[1019]; } t_largestruct; extern t_largestruct funclarge(void); int test(void) { char c; c=funclarge().a[0]; c+=funclarge().a[1]; return c; } *** When compiled for Darwin/x86_86 with either Clang or GCC and LLVM 2.7, the frontends (via alloca) and subsequently LLVM (on the cpu stack) allocate two separate temps for the result of the calls to f...