Randall R Schulz <rrschulz at cris dot com> wrote:
> A couple of months ago, someone reported on how local (stack)
> allocations larger than a certain threshold were allocated on the heap.
> In fact, you, Danny, contributed materially to that thread: Subject
> "Strange behaviour of gcc" starting with a posting by
> fabrizio_ge-wolit@tiscali.it on Dec. 24, 2002.
No that's not quite right:
Stack allocations larger than one page (4KB) cause gcc to probe the stack.
The allocation is still static
I was clearly confused about what "alloca" does: It allocates space on
the stack, _not_ on the heap, as I thought.