Re:Const and Optimization in C
by peeyek on Monday July 25, 2016 @07:16AM
(#12157844)
In 2nd paragraph, the author states:
> The function foo takes a const pointer, which is a promise from the author of foo that it won’t modify the value of x. Given this information, it would seem the compiler may assume x is always zero, and therefore y is always zero.
[ Parent
| on HN ]