home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / misc / 43 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.sys.sgi.misc
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!dweber
  3. From: dweber@ncsa.uiuc.edu (Daniel Weber)
  4. Subject: Re: C Compiler & Array subscripting
  5. References:  <BzDw4B.82D@news.cso.uiuc.edu>
  6. Message-ID: <BzGon1.Jvs@news.cso.uiuc.edu>
  7. Originator: dweber@kankakee.ncsa.uiuc.edu
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. Reply-To: dweber@ncsa.uiuc.edu
  10. Organization: National Center for Supercomputing Applications
  11. Date: Fri, 18 Dec 1992 15:35:22 GMT
  12. Lines: 13
  13.  
  14.  
  15. Thanks for all of the suggestions and help.  One gentleman at Fermi
  16. pointed me to the K&R manual (pg. 99, K&R second ed) where it specifically
  17. states that the compiler converts a[i] to *(a+i).  That answers that 
  18. question.
  19.  
  20. As for optimization, thanks for the information on how the SGI compiler
  21. optimizes code and thanks for reminding me that SGI's have "pixie" for
  22. profiling the code.  Many of the machines that I work on don't have tools
  23. like this, so I tend to forget to use it.
  24.  
  25. -daniel weber
  26. dweber@ncsa.uiuc.edu
  27.