6 ms·
> C compilers are pretty deterministic, same input same output, except timestamps, etc. "Sometimes gcc will opt to use a randomized model to guess branch proba
by cesarb 4y ago
> 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)
- dooglius 4y agoLooked into this and it appears it was not the case; the docs were confusingly written, and the docs appear to have been rewritten some time ago https://marc.info/?l=gcc&m=102068997020453&w=2 https://marc.info/?l=gcc&m=102068997020453&w=2