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

  1. Xref: sparky comp.arch:10898 comp.lang.misc:3776
  2. Newsgroups: comp.arch,comp.lang.misc
  3. Path: sparky!uunet!ftpbox!mothost!citi.prds.cdx.mot.com!dan
  4. From: dan@cae.prds.cdx.mot.com (Dan Breslau)
  5. Subject: Re: how to advocate new software/hardware features (Re: Hardware Support for Numeric Algorithms)
  6. Message-ID: <1992Nov18.165004.17509@cae.prds.cdx.mot.com>
  7. Organization: none
  8. References: <Bxs63J.BxA@exnet.co.uk> <BxtA6v.CE8@mentor.cc.purdue.edu> <id.HJ1V.BTG@ferranti.com> <BxwzzK.6Lr@mentor.cc.purdue.edu>
  9. Date: Wed, 18 Nov 1992 16:50:04 GMT
  10. Lines: 42
  11.  
  12. hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  13.  
  14. >In article <id.HJ1V.BTG@ferranti.com> peter@ferranti.com (peter da silva) writes:
  15. >>In article <BxtA6v.CE8@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  16. >>> But it is.  The operations often use register arguments and the results
  17. >>> are wanted in registers.
  18.  
  19. >>What's a register? Most modern compilers ignore "register", or use it as a
  20. >>hint "this is a frequently used value".
  21.  
  22. >Maybe that is one reason for such poor object code.  Most modern architectures
  23. >REQUIRE that arguments are in registers.  This should be well known; no matter
  24. >how well loads or stores can be integrated into the code, they certainly add
  25. >an instruction issue.
  26.  
  27. >So, assuming that addition takes one cycle, a = b + c takes one cycle if
  28. >only registers are used, but four cycles otherwise.
  29.  
  30. [...]
  31.  
  32. >An include file should be considered as part of the program.  The programmer
  33. >decides explicitly which ones to include.  By a subroutine, I normally mean
  34. >one compiled separately, and with object code linked at run time, or when
  35. >an object file is being produced, by the loader.  Inlining requires that
  36. >the compiler introduce instructions directly into the compilation as it
  37. >does when it is handling the user's code.  The current inlining is a special
  38. >case of what I would like to accomplish with the macro processor I have
  39. >called for; I would allow macros applied to macros, etc.  Inlining corresponds
  40. >to a subset of what a more powerful #define would handle.  But since it is not
  41. >under the control of the programmer, it becomes part of the language.
  42.  
  43. Herman, please.  Audit some undergrad courses in computer architecture & compilers.
  44. Then you can come back and resume your endless spiel, but at least you'll
  45. have some idea what you're talking about.
  46.  
  47. Geesh.  Most of us don't spend time and bandwith flaming on sci.math.stat
  48. about Gaussian normal distributions...
  49.  
  50. Dan Breslau
  51. dan@codex.com
  52. Speaking for myself, at most...
  53.  
  54.