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.

8 lines
771 B

2 years ago
2 years ago
  1. This was done initially as part of the visibility jam: https://handmade.network/jam/visibility-2023/feed
  2. 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.
  3. 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.
  4. ![screenshot](https://git.nickhayashi.com/nickhayashi/struct-vis/src/branch/master/screenshot.png)