by Raphael_Amiard · 4y ago · 0 comments
None of you are mistaken.
https://www.slideshare.net/AdaCore/securing-the-future-of-sa...
Just look at the performance costs of bounds-checking array access in C++ code.
Or more macro, the performance impacs of AV tools or Windows Defender on your system
Not necessarily. The linked blog talks about SPARK which is about running your code through theorem provers to mathematically formally verify that your code does the correct thing _in all instances_.
Once you have passed this level of verification - you can disable assertions and checks in the release version of the application (whilst of course - having the option of keeping them enabled in development releases).
If your compiler can prove you dont need bounds-checking it will remove the check and the performance would be the same. Hence, if your program has been proven to have no runtime errors you dont need them.
By that logic C/C++ doing no bounds checking speeds your code up?