[LLVMdev] Pass and return of large objects

Anton Korobeynikov anton at korobeynikov.info
Mon Mar 1 07:20:22 PST 2010


> Suppose you have something like 'struct foo { char data[10000000]; }',
> and you want to pass such objects as function parameters, and return
> them as function results, by value, does this currently work correctly
> on all supported target platforms?
Yes, it should. But on many (almost all platforms) this will surely
overflow the stack.
Also, these objects are not supported on 16-bit targets :)

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list