In C++, compiler optimization may produce "unexpected" program behaviors by assuming a program free of undefined behaviors, like signed integer overflows and dereferencing null pointers. It is important to test a program in release build if a release build is used in the production.
In C#, undefined behaviors are rare. Are there more reasons to test a program in release build other than
- Unsafe code
- Multithread timing
- Debug/release mode enabled/disabled code
Can optimization produce different program behaviors like C++?
Aucun commentaire:
Enregistrer un commentaire