home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / misc / 3642 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.6 KB

  1. Path: sparky!uunet!ukma!wupost!decwrl!decwrl!contessa!mwm
  2. From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
  3. Subject: Re: languages which allow the introduction of new operators
  4. Newsgroups: comp.lang.misc
  5. Distribution: world
  6. References: <17434@mindlink.bc.ca> <Bxns5v.5uJ@mentor.cc.purdue.edu>
  7. X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
  8. Keywords: 
  9. Summary: 
  10. Message-ID: <mwm.2mpj@contessa.palo-alto.ca.us>
  11. Date: 13 Nov 92 11:44:30 PST
  12. Organization: Missionaria Phonibalonica
  13. Lines: 20
  14.  
  15. In <Bxns5v.5uJ@mentor.cc.purdue.edu>, hrubin@pop.stat.purdue.edu (Herman Rubin) wrote:
  16. > In article <17434@mindlink.bc.ca> Nick_Janow@mindlink.bc.ca (Nick Janow) writes:
  17. > >Why do you object to the use of a stack machine (on which those operations
  18. > >are fast)?  If a stack language on a stack machine will run n times as fast
  19. > >as a non-stack language on a non-stack machine of equal technology level, why
  20. > >not use a stack machine?
  21. >
  22. > HOW can a stack machine be fast?  One of the features of an efficient program
  23. > is to have the quantities needed available in registers.
  24.  
  25. Not quite - delete "registers", and replace it with "fastest available
  26. memory". Most architechtures put that memory in a seperate address
  27. space with special address modes, but neither is required.  There are
  28. machines where the registers are just a particularly fast piece of
  29. ram; there are machines where that address may be set by the
  30. programmer; there are even machines that map the top of the stack into
  31. high-speed memory. The latter would be quite appropriate for a being a
  32. fast stack machine, even though it wasn't designed for that.
  33.  
  34.     <mike
  35.