You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add -fno-use-cxa-atexit compiler option to reduce unused code
C++ requires that static object destructors are called when the
program terminates. Recent versions of GCC use __cxa_atexit to
register exit handlers which call these object destructors.
With the -fno-use-cxa-atexit command line option, GCC uses atexit
instead (same functionality, but only up to 32 exit handlers can
be registered).
Since the Arduino main process can not return, and calls to exit()
simply call an infinite loop - so all of this is completely
irrelevant. No exit handlers are ever called.
By removing the unused __cxa_atexit functionality we save a bit of
space.
See rogerclarkmelbourne/Arduino_STM32#556
Thanks @justinschoeman
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
0 commit comments