在Apple M1下简单测试xtensa toolchain


没忍住还是买了MacBook Air M1乞丐版(8GB内存 / 256G硬盘)。我平时常用的软件比较轻量,低配版应该足够应付日常工作。这里简单测试一下esp32的编译工具xtensa toolchain,测试的esp-idf版本为v4.2

xtensa x86_64

日常项目编译时间为47秒,这个需要Rosetta 2转译,但是仍然比之前的Intel I3 8100快了不少
idf.py build 233.45s user 60.71s system 629% cpu 46.757 total

xtensa aarch64

首先参考这里的介绍安装Apple M1版本的xtensa toolchain。编译速度起飞,仅需26秒
idf.py build 87.23s user 28.12s system 444% cpu 25.940 total


Leave a Reply

Your email address will not be published. Required fields are marked *