4 ms·
The standard also doesn't require UB to have run-time checks, which is probably for the goal of performance. There was an implementation in mind when it was des
by hot_gril 3y ago
The standard also doesn't require UB to have run-time checks, which is probably for the goal of performance. There was an implementation in mind when it was designed.
- uecker 3y agoThere were C implementations with bounds checking or implementations that trap on use of an invalid pointer or on read of uninitialized variables etc. A large part of UB was introduced for such reasons and not for performance. The standard was (and still is) about allowing a wide range of implementations.