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