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 12 months ago
.gitignore initial 1 year ago
README.md adsf 1 year ago
base-index.html working on moving rendering to js 12 months ago
index.html working on moving rendering to js 12 months ago
main.c working on moving rendering to js 12 months ago
screenshot.png img 1 year ago
stb_c_lexer.h initial 1 year ago
table.h working on moving rendering to js 12 months ago
visualization.h working on moving rendering to js 12 months 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