The Art of Machinery personal blog

Why Const Doesn't Make C Code Faster

In a post a few months back I said it’s a popular myth that const is helpful for enabling compiler optimisations in C and C++ . I figured I should explain that one, especially because I used to believe it was obviously true, myself. I’ll start off with some theory and artificial examples, then I’ll do some experiments…
Points
291
HN comments
190
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2019

On Hacker News

SubmittedTitle on HNPointsComments
Aug 19, 2019Why Const Doesn't Make C Code Faster by mnem291190

More from The Art of Machinery

All 6 posts →

Related posts from the same era