Compiler Optimizations and RAM Use
I have run out of memory as evidenced by malloc returning NULL. I am looking at what variables and code I can eliminate. I am also looking at the optimizations selections at:
Project => Properties => C/C++ Build => Settings => Tool Settings tab => MCU GCC Compiler => Optimizations
I know these optimizations will affect code size in the flash. Will they also have an effect on the amount of RAM that is used?
There are two check boxes here. The are labeled:
Place the function in their own section (-ffunction-sections)
Place the data in their own section (-fdata-sections)
What effect would each of these have on RAM use?