Skip to content

Using Static and Dynamic Library Files in C

Learn how to create and use static libraries (.a) and dynamic shared libraries (.so/.dll) in C. Covers compilation steps, linking, runtime loading with dlopen, and when to use each type in embedded systems.

Dynamic Memory Allocation in C

Learn how to use malloc, calloc, realloc, and free in C for dynamic memory allocation. Understand stack vs heap, common pitfalls like memory leaks and dangling pointers, and best practices for embedded systems.

Separate Header Files in C

Learn how to organize your C code into separate header (.h) and source (.c) files. Covers include guards, module patterns, and best practices for embedded systems projects.