3 ms·
Are you familiar with what the ISA feature does? It lets code skip the masking step, allowing them to dereference a non-canonical tagged address as if it was ma
by saagarjha 5y ago
Are you familiar with what the ISA feature does? It lets code skip the masking step, allowing them to dereference a non-canonical tagged address as if it was masked into canonical form. Since applications that rely on tagging are typically performance-sensitive, skipping that step can be a win for them.
- JonChesterfield 5y agoI see that benefit. For code compiled appropriately. The article also thinks this will need to be per-process, so context switching gets even more expensive. Maybe the mask gets in the way of prefetching the pointer destination, though the machine might speculate that the pointer will be in canonical form. The arithmetic mask itself is very close to free. I guess someone thinks it's worth the silicon and software dev necessary to deploy. If it makes my code faster then I'll probably use it.
- saagarjha 5y agoIt's one less instruction, so it also reduces code size.