Yes and now C99 supports variable length arrays anyway. The storage gets allocated (deallocated) as control enters (exits) the scope. Jumping in I think is not allowed, dunno if that gets compile time checked or results in a run time error. alloca is officially not portable but its present on platforms I care about. It is living dangerously, sure, but quite effective nonetheless.
Would have loved a portable way to query how much stack space the process has left. The problem some architectures need not even have a stack.
Would have loved a portable way to query how much stack space the process has left. The problem some architectures need not even have a stack.
@dbaupp Hey thanks ! and nice to know