Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pointer aliasing

what is the difference between "Strict", "Typed", "Restricted" and "Disjointed" aliasing?

like image 530
salman Avatar asked Mar 01 '23 00:03

salman


1 Answers

In "Strict aliasing", pointers don't alias if they are different types.
In "Typed aliasing", pointers of the same type can alias and overlap.
In "Restricted aliasing", pointers of same type are assumed to not overlap.
In "Disjointed aliasing", all pointer expressions result in no overlap.

like image 150
salman Avatar answered Apr 28 '23 08:04

salman