Mangy_Dog wrote: ↑Wed Apr 03, 2024 1:49 pm
Binary size difference appears to be Newlib Standard vs Newlib nano setting... Not entirely sure what newlib is...
Clock situation still appears to be happening.
I once tried things like
Code: Select all
-nostdlib
-nostartfiles
-nodefaultlibs
https://gcc.gnu.org/onlinedocs/gcc-4.4. ... tions.html
and the build fails, it is there and then that you figure out if you have a dependency on stdlibs i.e. the usual c std libs.
things like printf(fmt, ... ) and most of thost c std libs is in there.
the notion is that for extreme leanness it'd take not linking the bulk of stdlibs, but that's difficult as it implies reinventing the wheel.
but that normally during linking there are options passed so that only functions that are actually dependent are linked.
And I'd guess there are limits to how the compiler, linker can do that.