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
bfa0b97ecd
|
2 years ago | |
---|---|---|
.gitignore | 2 years ago | |
README.md | 2 years ago | |
base-index.html | 2 years ago | |
index.html | 2 years ago | |
main.c | 2 years ago | |
screenshot.png | 2 years ago | |
stb_c_lexer.h | 2 years ago | |
table.h | 2 years ago | |
visualization.h | 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.