I noticed a optimization difference between compiling a simple source code with ARM GCC in C and C++. The C++ version seems to optimize a lot less stack usage.
To demonstrate this problem, I compiled the following code with arm-none-eabi-gcc version gcc…