🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #47

Re: C Compiler & Array subscripting

#47
From: Daniel Weber
Date: Fri, 18 Dec 1992 15:35
13 lines
1065 bytes
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
Technical Details
Message-ID: <BzGon1.Jvs@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!dweber
References: <BzDw4B.82D@news.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.misc
Path: arc1-ca.pugleaf.net!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