Find limit of recursion: Difference between revisions

(→‎{{header|PureBasic}}: Added PureBasic)
Line 223:
[Level 1720] no good
[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.