rustwasm / twiggy

Twiggy🌱 is a code size profiler
https://rustwasm.github.io/twiggy
Apache License 2.0
1.29k stars 69 forks source link

Option to specify roots of program #747

Open smmoosavi opened 10 months ago

smmoosavi commented 10 months ago

💡 Feature Description

I try to use Twiggy for the embedded binary for the thumbv6m-none-eabi target. As I know, these sections can be the starting point of the program (no_mangle and interrupt sections): __stext, SysTick, EXTI4_15, TIM2

When I run twiggy garbage all sections are marked as garbage. Please add an option (e.g., --roots) to specify the starting points of the program.

💻 Example Usage

twiggy garbage --roots __stext SysTick EXTI4_15 TIM2

🙌 Are you interested in implementing this feature?