Difference in C-program mathematical result with different compiler options
I have C-function, in one case it compiled with GCC without any flags and produce right result (I print all input and output parameters to check):
How can a compiler perform whole code optimizations if most code are in the form of static libraries?
It’s basically the title, but here is some context: