Re:Why Const Doesn't Make C Code Faster
by gpderetta on Tuesday August 20, 2019 @06:46AM
(#20745436)
Interestingly, top level cost does not guarantee immutability, but any const member reachable from that reference is in fact guaranteed to be immutable: ergo:
edit: I do not think either GCC or clang take advantage of that though, so currently it is just a curiosity.
edit: missed actual const keywords /facepalm