Unusually large binary after build...
Posted: Wed Jul 24, 2024 9:40 am
So I've just ran into an issue on a work project.
Were still trying to migrate over to a vscode setup but were not there yet, and I'm currently using sloeber on eclipse.
The odd issue is I'm getting an unusually large binary being built.
At the moment I'm just trying to build the framework of a program that can have features added to it over time. But even with this fairly simplistic framework, I'm getting a 114kb binary.
For reference, my old tricorder project has about 14 thousand lines of written code. And that fits on an f103 128kb. Though that was on Roger Clarks core.
Here using the official Arduino_STM32 core a few hundred lines of code (if that) is 114kb...
Something isn't right. Also while the vscode side of things is still being worked on, it appears to compile and it makes a 60kb binary. Though to be honest even that seems large at this stage.
This is using a custom variant for the STM32F030RCT6
U(S)ART Support : Enabled (no generic 'Serial')
Optimize : Smallest (-Os default)
USB Support: none
Debug Symbols : none
Upload Method : SWD
C runtime : Newlib Nano (default)
Just did an empty program, that came to 27kb...
Main libraries I have added (other than my own modular classes in their headers ect...) Is FreeRTOS and Blues Notecard and Arduino Json.
Maybe those libraries are adding a huge bulk... Still think 114kb is A LOT.
Were still trying to migrate over to a vscode setup but were not there yet, and I'm currently using sloeber on eclipse.
The odd issue is I'm getting an unusually large binary being built.
At the moment I'm just trying to build the framework of a program that can have features added to it over time. But even with this fairly simplistic framework, I'm getting a 114kb binary.
For reference, my old tricorder project has about 14 thousand lines of written code. And that fits on an f103 128kb. Though that was on Roger Clarks core.
Here using the official Arduino_STM32 core a few hundred lines of code (if that) is 114kb...
Something isn't right. Also while the vscode side of things is still being worked on, it appears to compile and it makes a 60kb binary. Though to be honest even that seems large at this stage.
This is using a custom variant for the STM32F030RCT6
U(S)ART Support : Enabled (no generic 'Serial')
Optimize : Smallest (-Os default)
USB Support: none
Debug Symbols : none
Upload Method : SWD
C runtime : Newlib Nano (default)
Just did an empty program, that came to 27kb...
Main libraries I have added (other than my own modular classes in their headers ect...) Is FreeRTOS and Blues Notecard and Arduino Json.
Maybe those libraries are adding a huge bulk... Still think 114kb is A LOT.