Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stack size limit for If/Then statements?
#19
If I understand correctly your are bound to the generated rules one per each line in the same format?

I tried the following with 65,795 rules/lines and it maxed out at 4GB during compiling:

Code: (Select All)
Line Input "File to read in:", FILE$
Line Input "File to write out:", FILE2$

Open FILE$ For Binary As #1: 'For reading
Open FILE2$ For Output As #2: Close #2: Open FILE2$ For Binary As #2 ':For write

Do '(Main loop goes here)

  Convert Lookahead$, Chr$(0), "(output)"
  Convert Lookahead$, Chr$(1), "(output)"
  '... the other 254 + 65534 lines ...
  Convert Lookahead$, Chr$(255) + Chr$(254), "(output)"
  Convert Lookahead$, Chr$(255) + Chr$(255), "(output)"
Loop

Sub Convert (Lookahead$, test$, output$)
  If Lookahead$ = test$ Then Put #2, , output$
End Sub
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply


Messages In This Thread
RE: Stack size limit for If/Then statements? - by mdijkens - 01-31-2024, 08:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Recursion Limit bplus 14 2,598 10-17-2025, 07:46 PM
Last Post: a740g
  Feature Request: Limit Scope of a "Find" and "Change" hanness 5 736 06-21-2025, 11:21 PM
Last Post: SMcNeill
  Recursion limit? TerryRitchie 5 1,197 03-12-2024, 02:17 PM
Last Post: GareBear
  Can't set font size in Linux Circlotron 3 998 08-28-2022, 05:58 PM
Last Post: mnrvovrfc
  How can I change editor font size in Linux bigriverguy 1 748 06-22-2022, 06:15 PM
Last Post: cage

Forum Jump:


Users browsing this thread: 1 Guest(s)