Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion Limit
#7
@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
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
Reply


Messages In This Thread
Recursion Limit - by bplus - 05-28-2023, 02:04 PM
RE: Recursion Limit - by CharlieJV - 05-28-2023, 02:39 PM
RE: Recursion Limit - by dbox - 05-28-2023, 03:55 PM
RE: Recursion Limit - by CharlieJV - 05-28-2023, 03:06 PM
RE: Recursion Limit - by mnrvovrfc - 05-28-2023, 03:37 PM
RE: Recursion Limit - by bplus - 05-28-2023, 06:10 PM
RE: Recursion Limit - by CharlieJV - 05-28-2023, 06:59 PM
RE: Recursion Limit - by Jack - 05-28-2023, 06:30 PM
RE: Recursion Limit - by bplus - 05-28-2023, 10:30 PM
RE: Recursion Limit - by bplus - 05-28-2023, 11:14 PM
RE: Recursion Limit - by dbox - 05-29-2023, 12:04 AM



Users browsing this thread: 1 Guest(s)