Anonymous user
Find limit of recursion: Difference between revisions
Nimrod -> Nim
(Nimrod -> Nim) |
|||
Line 1,196:
</pre>
=={{header|
<lang
echo i
recurse(i+1)
echo recurse(0)</lang>
Compiled without optimizations it would stop after 87317 recursions. With optimizations on recurse is translated into a tail-recursive function, without any recursion limit. Instead of waiting for the 87317 recursions you compile with debuginfo activated and check with gdb:
<pre>
=={{header|OCaml}}==
|