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

  1. Xref: sparky comp.sys.super:1210 comp.arch:12436 comp.compilers:2276
  2. Newsgroups: comp.sys.super,comp.arch,comp.compilers
  3. Path: sparky!uunet!think.com!spdcc!iecc!compilers-sender
  4. From: hyatt@cis.uab.edu (Robert Hyatt)
  5. Subject: Re: How many vector registers are useful?
  6. Reply-To: hyatt@cis.uab.edu (Robert Hyatt)
  7. Organization: University of Alabama at Birmingham
  8. Date: Wed, 27 Jan 1993 01:57:12 GMT
  9. Approved: compilers@iecc.cambridge.ma.us
  10. Message-ID: <93-01-201@comp.compilers>
  11. References: <93-01-174@comp.compilers> <93-01-195@comp.compilers>
  12. Keywords: architecture, vector
  13. Sender: compilers-sender@iecc.cambridge.ma.us
  14. Lines: 23
  15.  
  16. In article <93-01-195@comp.compilers> jlg@cochiti.lanl.gov (J. Giles) writes:
  17. >Vectors and scalars are not really all that different.  Unless you have
  18. >overlap between the vectors they really behave just like large scalars.
  19.  
  20. Good point.  If you program in assembler on a Cray, you also use registers
  21. to pre-fetch memory operands before you need 'em.  In this regard, re-use
  22. makes things even better, but even if you only do the equivalent of i++ in
  23. C, you can win big if you don't run out of registers.... ie, load i n
  24. clocks before it is needed, then s1 s1+1, then store it and don't use s1
  25. for n clocks.  the result is a three clock i++, as fast as it can be done
  26. on a Cray.  (n varies by cpu type.... and by memory type.  can at least
  27. span the interval 14 clocks to 24 clocks and even up to 50 clocks on some
  28. Cray-2 processors I have used.)
  29.  
  30. Same holds true for vectors.  You don't necessarily have to have high
  31. reuse to win, just enough registers to keep data flowing (a) from memory
  32. (b) to memory and (c) between functional units....
  33. --
  34. !Robert Hyatt                    Computer and Information Sciences   !
  35. !hyatt@cis.uab.edu               University of Alabama at Birmingham !
  36. -- 
  37. Send compilers articles to compilers@iecc.cambridge.ma.us or
  38. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  39.