Question
Why does dynamic allocation make my program so big?
Before you say it, I know dynamic allocation is usually a bad idea with embedded software, this is more of a technical question.
If I create a new blank C++ project based on my Nucleo-L152RE in SW4STM32, the "text" portion of my compiled project read by the "size" command is about 1kB. If I then add the lines:
int* p = new int;
delete p;text size becomes 75kB. data and BSS are basically unaffected.
Why is it so?
