[LLVMdev] Pass and return of large objects

Russell Wallace russell.wallace at gmail.com
Mon Mar 1 09:43:38 CST 2010

On Mon, Mar 1, 2010 at 3:20 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
> Yes, it should.

Hmm, Duncan Sands says otherwise?

> But on many (almost all platforms) this will surely
> overflow the stack.

Well, the stack size can usually be tweaked at runtime. But suppose we
have the default stack size, and replace the 10 MB object with 100 kB,
the question stands.

> Also, these objects are not supported on 16-bit targets :)

True :-) well, on a 16-bit system, can you pass and return a 1 kB object?

More information about the LLVMdev mailing list