HBehrens / puncover

Analyses C/C++ build output for code size, static variables, and stack usage
MIT License
419 stars 93 forks source link

move enhance_call_tree_pattern to gcc_tools, and teach gcc_tools how to pick up call trees for RISC-V #102

Closed jwise closed 1 month ago

jwise commented 3 months ago

I think enhance_call_tree_pattern is the only bit of arch-specific code. Probably in an ideal universe it would go into some arch/ library, but for now, gcc_tools is the one that knows what arch we're targeting (sort of), so I move that pattern there. Then, I add support for branch patterns for RISC-V. This allows puncover to track stack usage on RV32 / LiteX.

noahp commented 1 month ago

Wonderful, thank you for the patch! I'll publish a new version with this feature.

noahp commented 1 month ago

PUblished in v0.4.1