Re: programmer optimizations?

fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Sun, 1 Jan 1995 07:49:50 GMT

          From comp.compilers

Related articles
programmer optimizations? afsal@genius.tisl.soft.net (Afsal C. Majeed) (1994-12-28)
Re: programmer optimizations? davidm@Rational.COM (1994-12-31)
Re: programmer optimizations? fjh@munta.cs.mu.OZ.AU (1995-01-01)
Re: programmer optimizations? jhowat@lucifer.cs.waikato.ac.nz (1995-01-02)
Re: programmer optimizations? jbuck@Synopsys.COM (1995-01-02)
Re: programmer optimizations? eru@tele.nokia.fi (Erkki Ruohtula) (1995-01-11)
Re: programmer optimizations? conway@munta.cs.mu.OZ.AU (1995-01-05)
Re: programmer optimizations? bill@amber.ssd.csd.harris.com (1995-01-05)
Re: programmer optimizations? kerch@albion.camb.inmet.com (1995-01-12)
[11 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Keywords: optimize
Organization: Computer Science, University of Melbourne, Australia
References: 94-12-145
Date: Sun, 1 Jan 1995 07:49:50 GMT

"Afsal C. Majeed" <afsal@genius.tisl.soft.net> writes:


>What I want to know is your view on using such "cryptic" optimizations
>and whether any of the commercial compilers attempt to do such "target
>machine" specific optimizations. The compiler we have here does not
>seem to do it.(I am using the compiler XLC which comes with AIX on
>IBM RS/6000 machines)


My view is don't bother - unless speed is really important AND
you've determine by profiling that this part of the code is occupying
most of the execution time AND you've determined by examining the
generated assembler that the compiler you're using doesn't do
the optimizations automatically.


I don't know about commercial compilers, but GCC does heaps of those
sorts of optimizations - probably including many you've never even
thought of.


--
Fergus Henderson - fjh@munta.cs.mu.oz.au
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.