Sujet : Re: Baby X is bor nagain
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 28. Jun 2024, 05:23:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240627201830.854@kylheku.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-06-27, bart <
bc@freeuk.com> wrote:
And for most of /my/ compiles, the code produced by gcc-O0 is fast
enough. It also about the same speed as code produced by one of my
compilers.
>
So I tend to use it when I want the extra speed, or other compilers
don't work, or when a particular app only builds with that compiler.
>
Otherwise the extra overheads are not worth the bother.
How good are your diagnostics compared to GCC -O2, plus -Wall and -W?
Some diagnostics are not produced or don't work well without
optimization, because the the same analysis that goes into optimization
also goes into proofs connected to diagnostics.
For instance, some code look like might use a variable without
initializing it, under some conditions. The optimizer can rule out of
those conditions (e.g. by transforming the code in a way that
makes it obvious that the use of the variable is not reached
without crossing an assignment to it.)
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca