Re:Why Const Doesn't Make C Code Faster
by dmitrygr on Tuesday August 20, 2019 @04:35PM
(#20751793)
sometimes it cannot infer it even from function, for example, here is a function that in my particular OS gets me a pointer to my library's globals. To my code the returned pointer never changes, but the compiler has NO way to tell this function is const without my annotation
[ Parent
| on HN ]