I am a beginner, so my question continues.
I use the following code for my F030R8 board :
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1; // LED is ON
}
}
From the Program Details of the online compiler, it shows 11.5kB of flash consumption.
I do not know where the code space is used. And is there any way of decreasing the code size ?
For comparation, I use the STM32CubeMX code generation and write a similar led on program, and it only takes about 2.6kB of code compiling by keil. This time it is reasonable.
The next step for me is digging the .map and .lst files and to find out the why. It is pretty hard for me to read these files honestly.
Can any one give some advice? Thanks.
I am a beginner, so my question continues.
I use the following code for my F030R8 board :
From the Program Details of the online compiler, it shows 11.5kB of flash consumption.
I do not know where the code space is used. And is there any way of decreasing the code size ?
For comparation, I use the STM32CubeMX code generation and write a similar led on program, and it only takes about 2.6kB of code compiling by keil. This time it is reasonable.
The next step for me is digging the .map and .lst files and to find out the why. It is pretty hard for me to read these files honestly.
Can any one give some advice? Thanks.