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



Users browsing this thread: 2 Guest(s)