@bplus
in the QB64pe IDE click on Options->Compiler Settings and in the C++ Linker Flags: put -Wl,--stack,134217728
that's 128MB or 2^27
here's my mod to your code
compile to exe and then launch the cmd and from the cmd run your program, if your program dies you will still have the printout in the cmd window
here's my result for different linker values
2m 14378
4m 28943
8m 58076
16m 116325
32m 232839
64m 465856
128m 931886
in the QB64pe IDE click on Options->Compiler Settings and in the C++ Linker Flags: put -Wl,--stack,134217728
that's 128MB or 2^27
here's my mod to your code
Code: (Select All)
$NoPrefix
$Console:Only
Dest Console
howRecursive 1
Sub howRecursive (i As _Integer64)
If i < 0 Then Print "_Integer64 turned negative.": End
Print i
' _Delay .000000000005
howRecursive i + 1
End Sub
compile to exe and then launch the cmd and from the cmd run your program, if your program dies you will still have the printout in the cmd window
here's my result for different linker values
2m 14378
4m 28943
8m 58076
16m 116325
32m 232839
64m 465856
128m 931886