Re: ABS & recursion
Hawke writes:
> problems with recursion:
1> overhead with function calls and
2> stack overflows.
> you can get around 2 if you do wierd things like having
> STACKS=9e1000,256e1000
> in config.sys but then you have to make sure all users of
> your program have those ridiculously large stacks as well...
> nasty.
Euphoria's call stack is allocated out of normal memory.
It has nothing to do with STACKS=...
The Euphoria call stack (for recursion or any other subroutine calls)
will automatically grow and consume the 32 Mb RAM
(or whatever) on your machine, and then virtual memory will used.
Most compiled languages force you to set a maximum
size for your stack, such as 16K or 32K, and if you
exceed it, nasty things will happen.
Regards,
Rob Craig
Rapid Deployment Software
http://members.aol.com/FilesEu/
|
Not Categorized, Please Help
|
|