C++: how are 'new' and 'delete' operators implemented by default?
Hello,
I'm porting a C++ application to a STM32 device. The application itself is running, but I'm observing heap memory growing into the stack and firing an exception after a while. Running the application on Windows within Visual Studio shows the same behaviour regarding used memory going only up, but without crashing. This might be because there are GB of RAM instead of kB ;)
But I doubt that the application has memory leaks, I think that Windows is kidding me. The application is originally written on a Mac device. I'm in contact with the author and he couldn't see this behaviour on his setup and also never had crashes.
So, I assume I'm missing some compiler settings or something like that and I want to investigate the issue. I saw some articles regarding C++ on embedded devices and they recommend to overwrite the new and delete operator to use malloc() and free(). If I'd do this, I would also output a message how many memory is requested and freed. But I want to know the default implementation of the new and delete operators to check how they work. Where can I find those informations?
Thank you.
Regards
