Re:Falsehoods programmers believe about undefined behavior
by cesarb on Monday November 28, 2022 @07:50AM
(#33772975)
> C compilers are pretty deterministic, same input same output, except timestamps, etc.
"Sometimes gcc will opt to use a randomized model to guess branch probabilities, when none are available from either profiling feedback (-fprofile-arcs) or __builtin_expect. This means that different runs of the compiler on the same program may produce different object code." (from the gcc manual)
"Sometimes gcc will opt to use a randomized model to guess branch probabilities, when none are available from either profiling feedback (-fprofile-arcs) or __builtin_expect. This means that different runs of the compiler on the same program may produce different object code." (from the gcc manual)