home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / super / 1207 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.7 KB

  1. Xref: sparky comp.sys.super:1207 comp.arch:12417 comp.compilers:2269
  2. Newsgroups: comp.sys.super,comp.arch,comp.compilers
  3. Path: sparky!uunet!think.com!spdcc!iecc!compilers-sender
  4. From: jlg@cochiti.lanl.gov (J. Giles)
  5. Subject: Re: How many vector registers are useful?
  6. Reply-To: jlg@cochiti.lanl.gov (J. Giles)
  7. Organization: Los Alamos National Laboratory
  8. Date: Tue, 26 Jan 1993 18:33:43 GMT
  9. Approved: compilers@iecc.cambridge.ma.us
  10. Message-ID: <93-01-195@comp.compilers>
  11. References:  <93-01-174@comp.compilers>
  12. Keywords: architecture, vector
  13. Sender: compilers-sender@iecc.cambridge.ma.us
  14. Lines: 22
  15.  
  16. kirchner@uklira.informatik.uni-kl.de (Reinhard Kirchner) writes:
  17. > A register has an optimizing effect only when the value in it can be used
  18.                                       ^^^^
  19. > several times, at least twice, to avoid loading the value again from
  20. > memory.  We all know that this is to a great extent possible on scalar
  21. > machines.
  22.  
  23. Vectors and scalars are not really all that different.  Unless you have
  24. overlap between the vectors they really behave just like large scalars.
  25. My objection to the above is the statement that multiple use is the *only*
  26. optimizing effect.  The other (also true of scalars) is when the value is
  27. an intermediate.  A value which was just produced as the result of an
  28. operation, which is needed as an operand almost immediately, and that's
  29. the last you'll ever use it will not benefit from being written to memory
  30. and read back in again.  Of course, if you can chain your functional units
  31. together without using intermediaries at all, you won't need registers for
  32. this purpose.
  33. --
  34. J. Giles
  35. -- 
  36. Send compilers articles to compilers@iecc.cambridge.ma.us or
  37. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  38.