Article View: gnu.gcc.help
Article #52858Optimisation questions
From: Ajay Shah
Date: Sun, 17 May 1992 21:08
Date: Sun, 17 May 1992 21:08
22 lines
980 bytes
980 bytes
Can I count on gcc -O to replace
for (i=0; i<N; i++) {
x += z[i]; y += z[i];
}
by something like
for (i=0; i<N; i++) {
tmp = z[i]; x += tmp; y += tmp;
}
?
How does one learn more about ``improvements'' to code quality which
are irrelevant with modern compilers, and those which still help the
compiler?
-ans.
--
Ajay Shah, (213)749-8133, ajayshah@usc.edu
Technical Details
Message-ID:
<l1diqtINN9dv@almaak.usc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cf2fd035a56de36d,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-17 09:12:06 PST Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!news From: ajayshah@almaak.usc.edu (Ajay Shah) Newsgroups: gnu.gcc.help Subject: Optimisation questions Date: 17 May 1992 14:08:45 -0700 Organization: University of Southern California, Los Angeles, CA Lines: 22 Sender: ajayshah@almaak.usc.edu (Ajay Shah) Message-ID: <l1diqtINN9dv@almaak.usc.edu> NNTP-Posting-Host: almaak.usc.edu