2 ms·
With modern compilers, there is no such thing as what you program is what you get.
by einpoklum 5y ago
With modern compilers, there is no such thing as what you program is what you get.
- randomswede 5y agoAs long as you stay away from compiler-dependent, platform-dependent, and/or undefined behaviour, you should be fine. Main problem is that a surprising ab´mount of "looks normal" code is actually UB.
- einpoklum 5y agoYou would be "fine", but the compiler will optimize away alot of your code, and will rearrange a lot of the rest. I wasn't even talking about platform-dependent or undefined behavior.