Should two programs compiled with -O0 and -O2 each produce identical floating point results?

Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=UCPlbhwR81w



Duration: 2:04
4 views
0


Should two programs compiled with -O0 and -O2 each produce identical floating point results?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/5533854/gbg)gbg |
(stackoverflow.com/users/298225/eric-postpischil)Eric Postpischil |
A special thanks goes out to the (https://stackoverflow.com/questions/74150709/should-two-programs-compiled-with-o0-and-o2-each-produce-identical-floating-po)Stackexchange community |

I wish you all a wonderful day! Stay safe :)




Other Videos By Peter Schneider


2022-10-27How to replace the wild card characters with sampled characters in R
2022-10-27Flask-SQLAlchemy db.create_all() got an unexpected keyword argument 'app'
2022-10-27Template parsing function
2022-10-27Is there a "pipe" operator in Raku?
2022-10-27Temperature sensors are heating themselves
2022-10-27Can I do a WHERE clause to filter a json_agg column in the outer query?
2022-10-27Why does std::vector copy-construct instead of move-construct when the destructor may throw?
2022-10-27How to do a logical 'or' of requirements in a single concept?
2022-10-27Powershell Regex for German Umlaute based on upper/lowercase and position in String
2022-10-27Could we use an IP address in our network that does not fall into the RFC 1918 range?
2022-10-27Should two programs compiled with -O0 and -O2 each produce identical floating point results?
2022-10-27Defining entries [closed]
2022-10-27Can i use SCL, SDA pin for I2C
2022-10-27Load drinks and their ingredients into dictionaries
2022-10-27How to update Xcode to the latest acceptable version according with the current OS? It directly b...
2022-10-27Clang 14 and 15 apparently optimizing away code that compiles as expected under Clang 13, ICC, GC...
2022-10-27What's the point of a write-only collection?
2022-10-27Does a VPN hide the Device's name in a Local Network?
2022-10-27Processing a specific part of a text according to pattern from AWK script
2022-10-27What does "a collection of autonomous computers interconnected by a single technology" exactly mean?
2022-10-27For loop that takes turns between printing one thing or the other python



Tags:
c++
ieee-754
floating-point
gcc
precision