
The Complete Guide to GCC Attributes and Builtins
A working tour of GCC attributes and builtins for C: function, variable and type attributes, the builtins worth knowing, and how to keep them portable.
Tag
255 posts

A working tour of GCC attributes and builtins for C: function, variable and type attributes, the builtins worth knowing, and how to keep them portable.

Read z/OS abend codes like a debugger: system and user abends, the messages and dumps that explain them, the common codes by cause, and a triage method.

A working guide to Linux system calls: invocation, error returns, the main families with code, tracing with strace, seccomp filtering and portability.

Learn OpenCL 3.0 in C from platform discovery to kernels, buffers, work-groups, local memory, events and profiling, with complete programs and their output.

Learn I/O multiplexing in C: select, poll, epoll and kqueue compared, with event loops, edge and level triggering, partial I/O, timers and scaling across cores.

Find memory errors, leaks, uninitialised reads and thread races in C and C++ with Valgrind, then profile heap and cache use, debug live and gate your CI.

Learn the device tree language, how Linux uses it, and how to write, build, layer, validate and debug a board description from a blank file to a bound driver.

One driver for one chip, built from user-space probing to a regmap core with I2C and SPI front ends, IIO output, interrupts, error handling and debugging.

Build a working Linux container runtime in C: namespaces, a pivot_root rootfs, cgroup v2 limits, veth networking, seccomp, and what runc adds on top.

Build a Linux process sandbox layer by layer: drop root and capabilities, add namespaces, seccomp, Landlock, cgroups and systemd limits, then test what escapes.

Learn what undefined behavior is in C, why compilers exploit it, the common kinds with sanitizer output, and how to write, detect and fix code that avoids it.

How async runtimes work from the kernel up: readiness and completion I/O, epoll, io_uring, reactors, executors, Tokio internals and how to choose.