DEV Community

Julio Trasferetti Nicolucci
Julio Trasferetti Nicolucci

Posted on

Struct Alignment Visualizer - don't waste memory!

Yo everyone!

I built a simple web app to visualize struct alignment on an 8-byte grid.

What it does:

  • Visualizes padding: Paste a C struct and instantly see exactly where the compiler wastes space.
  • Architecture toggles: Switch between architectures: 64-bit (LP64/LLP64) and 32-bit (ILP32).

It uses only simple HTML/CSS/JS and hosted on GitHub Pages.

I'd love your feedback and contributions :)

Top comments (0)