----- Original Message ----- 
From: "Cheng Huang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 13, 2003 7:53 PM
Subject: why RELEASE build speeds up a LOT?


> The speed up of RELEASE build is about 4 times.
[...]
> I have tried to use the same compile flags
> in other computation complex program, but
> didn't see the same improvement.

It's not the compiler, it's the code. Writing code that can be
productively optimised requires significant familiarity with how
your high-level language code turns into assembly when the
compiler processes it. Normally, you learn this by writing a
compiler, which teaches you precisely how a given C or C++
statement turns into machine instructions -- and thereby how to
write statements that turn into *faster* machine instructions.
Realistically, few of us have the luxury of writing a compiler
after we leave college, so we have to study the subject more
directly. Richard Gerber's "Software Optimization Cookbook" has
been recommended to me in the past; you might want to pick up a
copy.

Reply via email to