Find limit of recursion: Difference between revisions

Content added Content deleted
(→‎{{header|PureBasic}}: Added PureBasic)
Line 223: Line 223:
[Level 1720] no good
[Level 1720] no good
[Level 1719] no good</pre>
[Level 1719] no good</pre>

=={{header|x86 Assembly}}==

{{works with|nasm}}

<lang asm> global main

section .text

main
xor eax, eax
call recurse
ret

recurse
add eax, 1
call recurse
ret</lang>

I've used gdb and the command <tt>print $eax</tt> to know when the segmentation fault occurred. The result was 2094783.