2 ms·
This got me wondering why we don't include dedicated hardware for bounds checking in CPU architectures. Intel made an attempt with MPX but from a brief glance
by rkagerer 7y ago
This got me wondering why we don't include dedicated hardware for bounds checking in CPU architectures. Intel made an attempt with MPX but from a brief glance on Wikipedia it looks like a fail (slower than pure software approaches like AddressSanitizer, among other issues).
- imtringued 7y agoProbably because it doesn't matter. The only important thing is to make sure that the hardware doesn't mis-predict the bounds check.