home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / arch / 10838 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.1 KB

  1. Xref: sparky comp.arch:10838 comp.lang.misc:3741
  2. Path: sparky!uunet!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
  3. From: tmb@arolla.idiap.ch (Thomas M. Breuel)
  4. Newsgroups: comp.arch,comp.lang.misc
  5. Subject: Re: how to advocate new software/hardware features (Re: Hardware Support for Numeric Algorithms)
  6. Date: 17 Nov 92 22:24:32
  7. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  8.     Perceptive)
  9. Lines: 29
  10. Message-ID: <TMB.92Nov17222432@arolla.idiap.ch>
  11. References: <TMB.92Nov13144057@arolla.idiap.ch> <1992Nov13.155126.3660@linus.mitre.org>
  12.     <1992Nov13.200222.23955@sal.wisc.edu> <id.OS0V.0DI@ferranti.com>
  13. Reply-To: tmb@idiap.ch
  14. NNTP-Posting-Host: arolla.idiap.ch
  15. In-reply-to: peter@ferranti.com's message of Mon, 16 Nov 1992 21:56:36 GMT
  16.  
  17. In article <id.OS0V.0DI@ferranti.com> peter@ferranti.com (peter da silva) writes:
  18.  
  19.    In article <1992Nov13.200222.23955@sal.wisc.edu> alan@sal.wisc.edu (Alan Watson) writes:
  20.    > >Quite a few modern microprocessors have hardware to do 32 x 32 bit 
  21.    > >multiplies and 64 bit / 32 bit divides.  I know of no HLL that will
  22.    > >allow me to write code to access these instructions. For example,
  23.    > >suppose I want to compute A*B/C exactly, where A,B, C are 32 bit
  24.    > >ints and C > A and C > B.  How do I do this in a HLL ?
  25.  
  26.    In Forth: A B C */ (this is actually 16 * 16 / 16 -> 16, but equivalent
  27.                operations exist for 32-bit operators in modern Forths)
  28.  
  29.    > This is a compiler issue, not a language issue; many compilers provide
  30.    > access to system-specific operations.
  31.  
  32.    No, it's a language issue. Forth, as implemented on an 8-bit CPU with no
  33.    hardware multiplier, provides this routine.
  34.  
  35. I somehow don't follow your reasoning. If _some_ FORTH implementations
  36. provide a particular machine specific feature, then it's "in the
  37. language", while if _some_ C implementations provide the same feature
  38. then it's merely "in specific implementations"? I think you are
  39. measuring with different yardsticks here.
  40.  
  41. Modern implementations of C provide sophisticated "asm" interfaces,
  42. just like modern implementations of FORTH provide machine-specific
  43. operators.
  44.  
  45.                     Thomas.
  46.