Newsgroups: | comp.compilers |
From: | chip@tct.uucp (Chip Salzenberg) |
References: | <1990Jun12.163959.2593@esegue.segue.boston.ma.us> <1990Jun13.143951.2129@esegue.segue.boston.ma.us> <1990Jun15.051349.3016@esegue.segue.boston.ma.us> |
Date: | Wed, 20 Jun 90 04:17:04 GMT |
Organization: | ComDev/TCT, Sarasota, FL |
Keywords: | code, optimize |
According to pardo@june.cs.washington.edu (David Keppel):
>[Two versions of strcpy() deleted]
>A moment's consideration should (hopefully) convince you that the
>first form requires two increments per iteration, while the latter
>requires only one.
But a moment's consideration convinced me that the first form requires
two array indexing operations, while the the latter requires none.
And besides, completely *safe* optimizations can transform either form
into the other. So there. :-)
--
Chip, the new t.b answer man <chip@tct.uucp>, <uunet!ateng!tct!chip>
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.