Embed++ 10c: Clang/LLVM (is much better than gcc?) for embedded FX3
Автор: Embedded C++ with MSVC IDE
Загружено: 2025-05-29
Просмотров: 128
Описание:
Want better diagnostics, smarter tooling, and faster builds in your embedded FX3 projects? Then it’s time to switch to Clang.
In this episode, we walk through the full migration of a Cypress FX3 firmware project from GNU gcc/g++ to Clang/LLVM. You'll learn how to install Clang, rework your makefile, handle toolchain compatibility quirks, and finally verify that your firmware still boots, logs via UART, and streams USB video properly.
✅ What you’ll learn:
How to install Clang/LLVM via Visual Studio
Where Clang binaries live on Windows
How to update makefile variables for Clang
Fixing incompatible flags like -mthumb-interwork
Defining preprocessor symbols for assembly quirks
Linking against ARM GCC libraries via --sysroot
Final device test with video and UART working 🎉
Next episode: Copilot-assisted vibe coding session. Stay tuned!
00:00 intro: GNU vs Clang toolchain
00:42 why switch to Clang?
01:37 installing Clang via Visual Studio
02:26 finding Clang binaries on disk
03:15 makefile modifications
05:00 fix ASM build
06:50 modify switches for C/C++ compiler and linker
08:45 fix linker script
09:20 bug in makefile from previous episode
09:41 test the build
10:30 fix enum sizes
11:15 git diff recap & commit
13:30 outro: next up – vibe coding with copilot!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: