Nick Desaulniers personal blog
F() vs. F(void) in C vs. C++
Prefer f(void) in C to potentially save a 2B instruction per function call when targeting x86_64 as a micro-optimization. -Wstrict-prototypes can help. Doesn’t matter for C++.
- Points
- 194
- HN comments
- 67
- Submissions
- 1
- Cited by
- 0 commenters
Programming LanguagesSoftware Engineering2019
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 12, 2019 | F() vs. F(void) in C vs. C++ by headalgorithm | 194 | 67 |