4 ms·
Right, because alloca is the only thing (as far as I know) that can resize the stack. There is not going to be anything else that does the same thing. The best
by flebron 14y ago
Right, because alloca is the only thing (as far as I know) that can resize the stack. There is not going to be anything else that does the same thing. The best one can do is those stack allocators which overflow to heap, or an alloca-based stack allocator.
There's an interesting discussion[1] at comp.std.c++ about implementing VLAs in C++0x, and the issues with dynamic stack resizing.
[1] https://groups.google.com/forum/?fromgroups=#!topic/comp.std.c++/K_4lgA1JYeg https://groups.google.com/forum/?fromgroups=#!topic/comp.std...