タグ Nick Desaulniers
人気順 5 users 50 users 100 users 500 users 1000 users(1 - 2 / 2件)
f() vs f(void) in C vs C++ - Nick Desaulniers
TL;DR 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++. The Problem While messing around with some C code in godbolt Compiler Explorer, I kept noticing a particular funny ... 続きを読む
Additional C/C++ Tooling - Nick Desaulniers
21st Century C by Ben Klemens was a great read. It had a section with an intro to autotools, git, and gdb. There are a few other useful tools that came to mind that I’ve used when working with C and C... 続きを読む
(1 - 2 / 2件)