.impure_data eats RAM in GCC 6q1

Asked by qmor

Hello everyone, i'm starts to using GCC 6q1 for cortex-m0 MCU and for now has realized that .impure_data in .data section eats 0x428 bytes.

I've tried to use --specs=nano.specs without any effect.

How can i reduce .impure_data size?

Question information

Language:
English Edit question
Status:
Expired
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Leo Havmøller (leh-p) said :
#1

Likely because your code is using errno directly or indirectly (e.g. strtol() will cause this), see https://embdev.net/topic/129813.
Try generating a .map file, it can show you which library functions are being pulled in and why.

Revision history for this message
qmor (qmor-qmor) said :
#2

Thanks. I'm not using errno or strtol or atoi directly, but i've fuuld in lst file that acos and asin (else pow sqrt etc. has calls of __errno. Is this cause a problem?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.