metameeee: "what are your favorite resources for learning C as an experienced high-level language developer?" strager: cppreference.com, Linux/macOS: man pages, Windows: MSDN
Emacs already has c-mode
by default so nothing to install there.
Most likely you already have gcc
, but there are other options out there. If you're going to use clangd
LSP anyway you might as well use clang
, which is already included when you install llvm (at least from homebrew). Finally, if you're using a makefile
, then you can build with make
.
ccls - Cumbersome build process
clangd - Just brew install llvm
and you're ready
At first I had issues with clangd
not finding external packages. This was fixed by installing Bear.
- fizzbuzz.c returns str from the stack and that's bad