Post AwAMQLSy8whKuHPGfA by tursilion@furries.club
(DIR) More posts by tursilion@furries.club
(DIR) Post #Aw9jWTCyNKECRXr0vg by foone@digipres.club
2025-07-15T11:26:41Z
0 likes, 0 repeats
is there any sort of tool that'll look at some executables debug info, and tell me how much of the binary is related to which source file?
(DIR) Post #Aw9jahb8ofEiENB0yW by foone@digipres.club
2025-07-15T11:27:18Z
0 likes, 0 repeats
like if I compile foo.exe out of bar.cpp and baz.cpp, something that can tell me that foo.exe is 30% of the file, and baz.cpp is 60% of the file?
(DIR) Post #Aw9jlNxMBSM6Uyf6Vk by foone@digipres.club
2025-07-15T11:29:22Z
0 likes, 0 repeats
I can do a sort of first-order approximation of it by looking at relative .o file sizes, but a file could easily have a lot of dead code removed in the linking stage so the .o would be big, but the final exe is small
(DIR) Post #Aw9kGbFKp1Tmh4xHg8 by Darius@mastodon.cloud
2025-07-15T11:34:56Z
0 likes, 0 repeats
@foone you can parse the .map file with varying levels of success. eg https://github.com/nrbrook/zephyr-tools
(DIR) Post #Aw9ktA7Xbmw3rIhJz6 by foone@digipres.club
2025-07-15T11:41:51Z
0 likes, 0 repeats
@pierogiburo ooh, it even supports WASM, that may be exactly what I need
(DIR) Post #AwAMQLSy8whKuHPGfA by tursilion@furries.club
2025-07-15T18:42:16Z
0 likes, 0 repeats
@foone I suppose you could write a quick and dirty tool to parse the map file ?