Unused strings Optimization
Hi all,
This problem is already discussed on several other forums like below:
https:/
To summarize, the strings from unused function gets pulled in the executable. Note that the function itself is not pulled in.
Is there some way to tackle this issue?
Here are the gcc options used:
-g -Os -fdata-sections -ffunction-sections -ffreestanding -MMD -Wall -fno-strict-
-T <ld script> -nostartfiles -Xlinker -M -Xlinker -Map=<map file> -Xlinker --cref -Xlinker --gc-sections
As per gcc man page, -fmerge-constants is enabled when -Os is used. So does it make sense to use -fno-merge-
Thanks for your help!
Thanks,
Rahul
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Rahul Gundecha for more information if necessary.