You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2024/11/03 10:17:36 UTC
[PR] sched/misc/assert.c: don't compile dump_task logic if CONFIG_DEBUG_ALERT=n [nuttx]
raiden00pl opened a new pull request, #14614:
URL: https://github.com/apache/nuttx/pull/14614
## Summary
Don't compile dump_task logic if CONFIG_DEBUG_ALERT=n. With _alert() disabled this logic does nothing, but the compiler is not smart enough to optimize this code.
on minimal stm32f3 configuration it saves 396B of flash.
Before this change:
```
Memory region Used Size Region Size %age Used
flash: 17560 B 64 KB 26.79%
sram: 2556 B 16 KB 15.60%
```
After this change:
```
Memory region Used Size Region Size %age Used
flash: 17164 B 64 KB 26.19%
sram: 2556 B 16 KB 15.60%
```
## Impact
free some flash memory
## Testing
nucleo-f302r8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] sched/misc/assert.c: don't compile dump_task logic if CONFIG_DEBUG_ALERT=n [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #14614:
URL: https://github.com/apache/nuttx/pull/14614
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org