carlosperate / docker-microbit-toolchain

Docker image with the BBC micro:bit C/C++ toolchain 🐳
MIT License
12 stars 7 forks source link

The new Arm GNU Toolchain is much bigger #4

Open carlosperate opened 2 years ago

carlosperate commented 2 years ago

It combines the cortex M and cortex A compilers into a single toolchain, so it will significantly increase the docker image size.

carlosperate commented 2 years ago

Based on the forum discussion:

Something we can do is remove the libraries for the platforms not relevant to micro:bit in arm-none-eabi/lib/thumb/ and lib/gcc/arm-none-eabi/11.3.1/thumb. We only need Cortex-M0+ and M4/M4f support, so we can leave the ARMv6-M and ARMv7E-M and remove the others (including v7ve+simd which is confusingly a Cortex-A one):

It should also be safe to remove arm-none-eabi/lib/arm/v5te and lib/gcc/arm-none-eabi/11.3.1/arm/v5te, but I'll have to double check:

carlosperate commented 2 years ago

These should also be fine to be removed:

carlosperate commented 1 year ago

The v12.3.1 is slimmer again, looks like they are stripping the symbols from the libraries again. However, there are some issues building some of the micro:bit projects with this version: