sdk-ng icon indicating copy to clipboard operation
sdk-ng copied to clipboard

Build -Os and -O2 versions of every target library

Open keith-packard opened this issue 1 year ago • 10 comments
trafficstars

This uses a new gcc config option, --enable-multilib-space, which duplicates every multilib configuration, adding a new version which optimizes for space. With this, every library in the toolchain will get built twice and will be selected depending on the options applied during the link phase. Add -Os or -Oz and you will get space-optimized versions of every toolchain library.

crosstool-ng PR: ~~https://github.com/zephyrproject-rtos/crosstool-ng/pull/26~~ GCC PR: https://github.com/zephyrproject-rtos/gcc/pull/39 Picolibc PR: TBD

keith-packard avatar Oct 14 '24 02:10 keith-packard