C "optimization"
P. D. Guthrie
pdg at ihdev.UUCP
Mon Nov 18 07:28:51 AEST 1985
In article <2539 at sjuvax.UUCP> jss at sjuvax.UUCP (J. Shapiro) writes:
>
>In the process of finding out that no one seems to do this, I have lost
>some respect for the UNIX "optimizer". Now, can anyone mail me a
>coherent reasoning for why UNIX cc is so inexcuseably stupid (at the
>moment our postings are going out, but our incoming feed is dead)?
>Can someone redeem my respect for the optimizer?
>
I enjoyed the comparison between the UNIX and VMS optimizers (left out
for brevity), and I my only reaction is that it is typical of DEC
compilers to produce super-optimized code. The Tops-20 Fortran Compiler
is another example, and seems to store "synonyms" for the contents of
every register, to leave out unnecessary calculations. When I was
writing a Fortran compiler on a DEC-20, it seemed at first that the
best way to see how to generate code was to look at the output of DEC's
Fortran compiler, but that proved to be fruitless, as it would use very
strange DEC-20 instructions to optimize the code down to nothing.
I would be interested to know if there have been any articles published
on DEC's optimization methods.
Paul Guthrie
ihnp4!ihdev!pdg
PS, sorry to talk about Fortrash in this enlightened newsgroup :-}
More information about the Comp.lang.c
mailing list