On Fri, Aug 21, 2009 at 10:06 PM, Johan 't Hart[off-list ref] wrote:
alloca() throws an exception when out of stack memory. But what would the
dynamically alloced array do when it runs out of memory? (Supposing that
those arrays are also created on the stack, which I don't know...) Is that
realy more complicated?
You get a run-time error. Or rather, you get a run-time error if
you're out of address space. If you go out of memory, swapping
mechanisms are used. And in turn, if the swapping mechanisms fail,
you'll get a run-time error AFAIK.
--
Erik "kusma" Faye-Lund
kusmabite@gmail.com
(+47) 986 59 656