home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.apple2      Discussion about Apple II micros      56,720 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 56,489 of 56,720   
   Steve Nickolas to D Finnigan   
   Re: Some thoughts I had (Logo, turtle gr   
   22 Dec 23 23:41:27   
   
   From: usotsuki@buric.co   
      
   On Sat, 23 Dec 2023, D Finnigan wrote:   
      
   > I am Rob wrote:   
   >>   
   >> Just be aware that the stack is limited for both LOGO, Applesoft and ML.   
   >> It only has a 256 byte range.  Meaning each recursion puts 2-bytes on the   
   >> stack for ML whereas each GOSUB will put 5 bytes on the stack.  Unsure   
   >> what   
   >> LOGO pushes on the stack.   
   >   
   > But in this scenario, maybe you would just redesign your program logic to   
   > use loops instead of recursion.   
      
   There's also the option in some languages of implementing them with an   
   emulated stack instead of using the CPU stack (iirc, this is what CC65   
   does).   
      
   Honestly, I think I'd do this for Logo - because it's highly likely with   
   the design of functions in Logo that programs would eat stack very   
   quickly, it might be better to set aside a second stack, possibly larger   
   than the system stack, to handle functions.   
      
   -uso.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca