PeterMcKinnis / WorstCaseStack

This program is used to do static stack analysis on C source code to determine the worst case stack usage for each function
BSD 3-Clause "New" or "Revised" License
87 stars 28 forks source link

no WEAK support (as advertised) #1

Closed wodz closed 6 years ago

wodz commented 7 years ago

README states no WEAK defined functions are supported, granted. What is the problem with this? This limitation makes it impossible to use this tool in order to analyze most of embedded software as usually startup code defines default IRQ handlers as WEAK.

saeugetier commented 7 years ago

I'm using this analyzer with STM32 HAL. The HAL uses weak declarations. Will there be a fix that the analyzer can deal with weak functions?`

Currently WCS throws an exception: Exception: Error Unknown Binding "WEAK" for symbol: HAL_MspInit

PeterMcKinnis commented 7 years ago

I have had others ask this as well. I will look into it. Are you able to share the project you are compiling?

Regards Peter

On Oct 6, 2017 8:10 AM, "saeugetier" notifications@github.com wrote:

I'm using this analyzer with STM32 HAL. The HAL uses weak declarations. Will there be a fix that the analyzer can deal with weak functions?`

Currently WCS throws an exception: Exception: Error Unknown Binding "WEAK" for symbol: HAL_MspInit

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PeterMcKinnis/WostCaseStack/issues/1#issuecomment-334737086, or mute the thread https://github.com/notifications/unsubscribe-auth/ASlvpMo-S_d8j8exXV5tdGonkrViiQrjks5sphisgaJpZM4LEFdP .

PeterMcKinnis commented 6 years ago

Closing for now. Will consider adding WEAK support if someone can send an example project to test with.