Tutorials
Step-by-step guides, usually with code on GitHub. Practical and to the point.
-
GDB step-by-step debugging
A practical walkthrough of debugging C programs with GDB — breakpoints, watchpoints, and reading stack frames.
→ github.com/achint/gdb-tutorial -
What is GCC
The history of GCC — from Richard Stallman's original release to the EGCS merger, GPL licensing, and Windows support.
-
Using GCC
How to compile single and multi-source C programs with GCC — object files, the -g flag, -c flag, -I flag, and PATH setup.
-
Static Library
How to create and use static libraries in C — libraries vs object files, ar, ranlib, naming conventions, and link order.
-
Dynamic Libraries
How to create and use dynamic (shared) libraries on Linux, including position-independent code, dlopen, dlsym, and dlclose.
-
GCC Compilation Phases
A detailed walkthrough of the four phases of C compilation with GCC — preprocessing, compilation, assembly, and linking.