Variables assigned to ram are increasing elf file size (=> occupying flash)

Rachel Sapir
Tue Sep 1 10:21:34 GMT 2020


I noticed that when I increase array sizes (I have some very big arrays)
the .elf file is increased by the same size. Since the elf file is saved to
the flash, it occupies flash area unnecessarily.

Is there a way to prevent this from happening?

Best regards,

More information about the Gcc-help mailing list