home bbs files messages ]

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

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

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

   Message 117,798 of 117,927   
   albert@spenarnc.xs4all.nl to Anton Ertl   
   Re: Elegant CPUs   
   03 Dec 25 12:59:42   
   
   In article <2025Dec2.193708@mips.complang.tuwien.ac.at>,   
   Anton Ertl  wrote:   
   >Paul Rubin  writes:   
   >>Succesful Linux   
   >>CPU's have quite a lot of registers and while fancy Forth compilers can   
   >>make use of them, you end up with an abstraction inversion   
   >   
   >That's what you have claimed repeatedly.  That would be true if the   
   >programmers actually wanted a register machine and simulated that in   
   >some way with the stack.  That's not what is happening.  The stack is   
   >a good abstraction for passing operands and parameters.  That's why it   
   >is used in Forth, in the JavaVM, in WebAssembly, and elsewhere.  The   
   >stack is not a good abstraction for dealing with lots of values,   
   >that's why Forth has locals, the Java VM has local variables, and   
   >WebAssembly has locals.   
      
   In riscv you can spare 25+ registers to hold LOCAL to-values.   
   As long as you take care of the chance of recursion,   
   can be very efficient.   
   >   
   >- anton   
      
   Groetjes Albert   
   --   
   The Chinese government is satisfied with its military superiority over USA.   
   The next 5 year plan has as primary goal to advance life expectancy   
   over 80 years, like Western Europe.   
      
   --- 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