Skip to content
systemcoding.dev

Snippets

Short posts that solve one thing: the code, the output we got, and why it works.

Performance

Warn about struct padding with -Wpadded

Turn on -Wpadded in GCC 14 to list every struct that gets padding bytes, then reorder members from largest to smallest to shrink the type.

1 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.