4 ms·
Your example of aliasing in C is a good one, because this is a case where modern C allows the programmer to give the compiler the necessary information to do a
by caf 12y ago
Your example of aliasing in C is a good one, because this is a case where modern C allows the programmer to give the compiler the necessary information to do a better job. The "restrict" keyword indicates that an object accessed through a given pointer argument cannot alias any other object accessed by the function.
- TheLoneWolfling 12y agoWhich doesn't help when you're trying to express anything more complex. Such as "a won't alias c, but there are no other restrictions".