3 ms·
> they are a No-op on the hardware. That is not guaranteed. The only guarantee is that you can round trip conversions via (u)intptr_t. The integer representati
by kevin_thibedeau 5y ago
> they are a No-op on the hardware.
That is not guaranteed. The only guarantee is that you can round trip conversions via (u)intptr_t. The integer representation of a converted pointer can be completely different to accommodate hardware like the Symbolics lisp machine.
- celeritascelery 5y agoAre we losing optimization on x86/arm due to mere existence of other hardware (like symbolics or CHERI) that handles things differently?
- astrange 5y agoYou don't lose the optimizations because of UB and aliasing rules letting them stay in, but the people who want to make C safer by simply defining all UB would lose you all these optimizations. ARM already includes a small part of CHERI (pointer signing) and the rest is coming.