Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new Arm GNU Toolchain is much bigger #4

Open
carlosperate opened this issue May 4, 2022 · 3 comments
Open

The new Arm GNU Toolchain is much bigger #4

carlosperate opened this issue May 4, 2022 · 3 comments

Comments

@carlosperate
Copy link
Owner

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

@carlosperate
Copy link
Owner Author

carlosperate commented Aug 23, 2022

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
Copy link
Owner Author

carlosperate commented Aug 23, 2022

These should also be fine to be removed:

  • share/doc
  • share/gcc-arm-none-eabi/samples

@carlosperate
Copy link
Owner Author

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant