visualize the data structures in a C program
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
churchianity 4a0db39473 working on moving rendering to js 2 years ago
.gitignore initial 2 years ago
README.md adsf 2 years ago
base-index.html working on moving rendering to js 2 years ago
index.html working on moving rendering to js 2 years ago
main.c working on moving rendering to js 2 years ago
screenshot.png img 2 years ago
stb_c_lexer.h initial 2 years ago
table.h working on moving rendering to js 2 years ago
visualization.h working on moving rendering to js 2 years ago

README.md

This was done initially as part of the visibility jam: https://handmade.network/jam/visibility-2023/feed

It is a CLI application. Given a list of files or a folder it will parse all the C structures in the files provided, calculate their member's alignments and sizes, and spit out an interactive single html file for visualization. Here's it is just parsing the data structures in its own source code.

I'd like to support bitfields, attribute noalign, __randomize_layout, C++, other languages, and have better/more useful tools for doing things like sorting them by size, showing you where you can trivially make your structures smaller, etc. and more in the future.

screenshot