Re:A Guide to Undefined Behavior in C and C++ (2010)
by pjmlp on Sunday November 04, 2018 @02:15PM
(#18377545)
Thing is, C and C++ aren't the only language with those capabilities, e.g. CPU for data processing.
What to live on the danger zone and disable bounds checking on e.g. Turbo Pascal?
Surround the critical performance code path with {$R-} and {$R+}, while enjoying safe bounds checking everywhere else.
Did you know (at the point where the entire architecture was chosen) that you will get 100 ms with a safer language? What if you got 1000 ms and C++ got 100 ms?