lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0706250013520.6215@asgard.lang.hm>
Date:	Mon, 25 Jun 2007 00:15:33 -0700 (PDT)
From:	david@...g.hm
To:	Segher Boessenkool <segher@...nel.crashing.org>
cc:	Willy Tarreau <w@....eu>, Benjamin LaHaise <bcrl@...ck.org>,
	linux-kernel@...r.kernel.org,
	Arjan van de Ven <arjan@...radead.org>,
	Adrian Bunk <bunk@...sta.de>,
	Oleg Verych <olecom@...wer.upol.cz>, rae l <crquan@...il.com>
Subject: Re: -Os versus -O2

On Mon, 25 Jun 2007, Segher Boessenkool wrote:

>>  In my experience, -Os produced faster code on gcc-2.95 than -O2 or -O3.
>
> On what CPU?  The effect of different optimisations varies
> hugely between different CPUs (and architectures).
>
>>  It was not only because of cache considerations, but because gcc used
>>  different tricks to avoid poor optimizations, and at the end, the CPU
>>  ended executing the alternative code faster.
>
> -Os is "as fast as you can without bloating the code size",
> so that is the expected result for CPUs that don't need
> special hand-holding around certain performance pitfalls.

this sounds like you are saying that people wanting performance should 
pick -Os.

what should people pick who care more about code size then anything else? 
(examples being embedded development where you may be willing to sacrafice 
speed to avoid having to add additional chips to the design)

David Lang
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ