espressif / crosstool-NG

crosstool-NG with support for Xtensa
Other
117 stars 62 forks source link

Question: Benefit of using picolib #64

Open Jason2866 opened 2 weeks ago

Jason2866 commented 2 weeks ago

don't know where else to ask. @Lapshin What benefits are seen by using picolib? Smaller code size?

Lapshin commented 2 weeks ago

Hi @Jason2866 , yes, that is it! Moreover, the benefit is related only to printf-family functions. That is because picolib is based on newlib's sources. Picolibc also has some changes in the math library, but I did not test it well. I did not find many differences after briefly looking at the Picolibc math sources.

The new release is coming soon and will include newlib and picolibc libraries. So, you will able to switch between libc implementations using IDF configure option

Jason2866 commented 1 week ago

The repo https://github.com/espressif/picolibc is not public. Will this be changed?