home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / arch / 10574 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.9 KB

  1. Xref: sparky comp.arch:10574 comp.lang.forth:3469
  2. Newsgroups: comp.arch,comp.lang.forth
  3. Path: sparky!uunet!sun-barr!cs.utexas.edu!uwm.edu!rpi!psinntp!psinntp!ficc!peter
  4. From: peter@ferranti.com (peter da silva)
  5. Subject: Re: What's RIGHT with stack machines
  6. Message-ID: <id.D6UU.5Z@ferranti.com>
  7. Organization: Xenix Support, FICC
  8. References: <Bx5AIr.EAy.2@cs.cmu.edu> <1992Nov4.103008.2641@Informatik.TU-Muenchen.DE> <MIKE.92Nov9004026@guam.vlsivie.tuwien.ac.at>
  9. Date: Mon, 9 Nov 1992 16:28:34 GMT
  10. Lines: 27
  11.  
  12. In article <MIKE.92Nov9004026@guam.vlsivie.tuwien.ac.at> mike@vlsivie.tuwien.ac.at (Michael Gschwind) writes:
  13. > But what do you do when you get to things like CSE? DUP
  14. > DUP SWAP SWAP ROT? Hardly efficient! 2 memory accesses for DUP, 4 for
  15. > swap, 6 for ROT.
  16.  
  17. Let's see, with a 16 element stack buffer, 0 or 1 memory access for dup
  18. (mostly 0), and 0 for swap or rot.
  19.  
  20. > Once again, with technology of 10 years ago, they were nice,
  21. > but it does pay to allocate registers and do scheduling, AND WE HAVE
  22. > THE TECHNOLOGY NOW to do it.
  23.  
  24. If you can afford to compile your code for each new processor, yes. Otherwise
  25. you have to assume that most code will use the scheduling that was best for
  26. the first generation of the chip. Outside of engineering-class workstations
  27. (a vanishingly small proportion of the total end-user micro market: PCs and
  28. game machines clobber it by orders of magnitude) this is the normal case,
  29. and in embedded systems (almost all the rest of the market) it's highly cost-
  30. effective to minimize code size: ROMS are slow and expensive.
  31.  
  32. I predict that before too long all high performance commodity micros will do
  33. scheduling at runtime.
  34. -- 
  35. % Peter da Silva % 77487-5012 % +1 713 274 5180 %
  36. true(<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$<<@)24 24 scale 3 21 moveto
  37. {dup 36 eq{pop not}{dup 7 and 4 sub exch 56 and 8 div 4 sub 2 index{rlineto}{
  38. rmoveto}ifelse}ifelse}forall stroke pop showpage % Har du kramat din varg idag?
  39.