Re: Cleanup for cryptographic algorithms vs. compiler optimizations

From: Andrew Milton <akm_at_theinternet.com.au>
Date: Mon, 14 Jun 2010 02:20:26 +1000
+-------[ Bernd Walter ]----------------------
| On Sun, Jun 13, 2010 at 05:44:29PM +0200, Dag-Erling Smørgrav wrote:
| > Bernd Walter <ticso_at_cicely7.cicely.de> writes:
| > > Amazing - this is one of the things which can get nasty if you try some
| > > kind of microtuning.
| > 
| > Only if you break the rules.  Bad code is always bad, even if it
| > sometimes works by accident.
| 
| To expect that function calls are replaced with other functions isn't a
| very obvious rule.

Don't turn on compiler optimisation then. You're explicitly telling
the compiler to make your code better/faster/smaller. Optimisation
flags always come with the caveat that your code may not work exactly 
the same...

-- 
Andrew Milton
akm_at_theinternet.com.au
Received on Sun Jun 13 2010 - 14:20:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC