Building the toolchain - the hard way (Apple arm64 m1 Macs, gcc 11.3.0) #821
jvasileff
started this conversation in
Show and tell
Replies: 1 comment
-
Very cool. I was thinking about trying to do a native build. @SpenceKonde any opinion on GCC 11.3 vs 7.3? Any thoughts on how many hidden bugs switching is likely to uncover? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The script below compiles a toolchain with all the newest packs with gcc version 11.3.0, bintools version 2.39, and avr-libc version 2.1.0. It works on macOS and Linux for both x86_64 and arm64.
The main advantage vs. the toolchain that ships with the core is to have better performance on M1 Macs, which normally have to use the x86_64 toolchain. The performance of the arm64 version is at least double that of the x86_64 version on M1 Macs.
To use with megaTinyCore in the Arduino IDE on macOS, after compiling, delete the existing toolchain from
~/Library/Arduino15/packages/DxCore/tools/7.3.0-atmel3.6.1-azduino*
, and copy the newly compiled toolchain to the same location (same directory name). Note that the old toolchain really does have to be deleted (or at least moved to some other directory), as the Arduino IDE has a stubborn habit of finding the old version, even when it has been renamed in some ways.Beta Was this translation helpful? Give feedback.
All reactions