|
![](/i/fill.gif) |
On 6/29/2011 12:55, Warp wrote:
> You can't impose a minimum amount of recursions because it depend on the
> size of the stack and how much stuff is allocated on it. You can allocate
> such a huge array on the stack that you might not be able to recurse even
> once without running out of stack space, regardless of how large the stack
> is.
That's why I thought maybe imposing a minimum stack size in bytes would work
out better. Of course, compilers wouldn't become non-standard to support
this - they'd just have to allocate big locals somewhere other than the
stack, which is of course a bad idea for any reason other than compatibility
with lame requirements. :-)
--
Darren New, San Diego CA, USA (PST)
"Coding without comments is like
driving without turn signals."
Post a reply to this message
|
![](/i/fill.gif) |