forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Milestone
Description
We rely on newlib as implementation of the C standard library and some standard UNIX APIs. This is generally furnished by ARM with their GNU toolchain.
In the past, @tannewt has observed that Arch's newlib is built with -Os, and this saves some space compared to the newlib furnished by ARM.
I noticed that Debian has picolibc which has its home at https://keithp.com/picolibc/ -- I believe it would be suitable to incorporate in CircuitPython.
As Picolibc is a combination of code from both Newlib and AVR-libc, the licensing of the source code is fairly complicated, but the general result is similar to the BSD 3-clause or MIT license.
Investigate alternatives and see which one gains back code space with the least "other costs" associated.