Replies: 5 comments
-
Hi @hilamal! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
Beta Was this translation helpful? Give feedback.
-
Take a look at
Where presence of |
Beta Was this translation helpful? Give feedback.
-
We use cortex_r, if we'll create a new section DEVNULL_ROM, can we use the string stripping feature (to move all the strings into this section)? Also, can we delete this section and run our FW without it? does the FW needs this DEVNULL_ROM section in runtime? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I'm trying to reduce my code size, one approach was to reduce it by changing the logging from using strings to binary hashing instead.
I expected the code size to reduce, since we don't need to store the full strings in the code RAM.
I set the configs to get hash logs:
CONFIG_LOG_PRINTK=y
CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_HEX=y or CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_BIN
CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY=y
CONFIG_LOG_BACKEND_UART=y
After changing it I saw no difference in the code size.
To Reproduce
CONFIG_LOG_PRINTK=y
CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_HEX=y or CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY_BIN
CONFIG_LOG_BACKEND_UART_OUTPUT_DICTIONARY=y
CONFIG_LOG_BACKEND_UART=y
Expected behavior
I'd expect the code size to reduce since we don't need to store the strings (we need only the hash codes for each string)
Impact
When we have code size issues, the logs take a lot of space.
Logs and console output
None
Environment (please complete the following information):
Additional context
None
Beta Was this translation helpful? Give feedback.
All reactions