home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / forth / 3753 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!email!mips.complang.tuwien.ac.at!anton
  3. From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
  4. Subject: Re: Hardware ONLY issues
  5. Message-ID: <1993Jan4.144512.9491@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: mips.complang.tuwien.ac.at
  8. Organization: Institut fuer Computersprachen, Technische Universitaet Wien
  9. References:  <4186.UUL1.3#5129@willett.pgh.pa.us>
  10. Date: Mon, 4 Jan 1993 14:45:12 GMT
  11. Lines: 28
  12.  
  13. In article <4186.UUL1.3#5129@willett.pgh.pa.us>, ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) writes:
  14. |> Category 9,  Topic 2
  15. |> Message 126       Tue Dec 22, 1992
  16. |> G.LEFAVE [Gene]              at 11:23 EST
  17.  
  18. |> One question.  Why would keeping the address of NEXT in a register on a 68040
  19. |> be considered unrealistic?  Since the 68040 has more registers then Forth can
  20. |> realistically use, I would think that was desirable.  It would also make the
  21. |> 68040, 486 comparison even more interesting.
  22.  
  23. In the benchmarks all occurences of NEXT are inlined. In the
  24. subroutine threading benchmark the address of the word "Next" is taken.
  25. That work just performs a NEXT and could also be called "Noop".
  26.  
  27. I a real Forth program we do not just use two different words, but
  28. hundresds. While the Forth system could hold the addresses of the,
  29. say, three most frequently used Forth words in registers, this would
  30. result in about 20% of calls through registers. So, the typical case
  31. is calling with immediate address, and doing this unoptimization makes
  32. the benchmark more realistic.
  33.  
  34. BTW, I was surprised to find out that the unoptimized version is
  35. slightly faster (on the 68040).
  36.  
  37. - anton
  38. -- 
  39. M. Anton Ertl                    Some things have to be seen to be believed
  40. anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
  41.