Embed++ 10c: Clang/LLVM (is much better than gcc?) for embedded FX3
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!
Видео Embed++ 10c: Clang/LLVM (is much better than gcc?) for embedded FX3 канала Embedded C++ with MSVC IDE
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!
Видео Embed++ 10c: Clang/LLVM (is much better than gcc?) for embedded FX3 канала Embedded C++ with MSVC IDE
fx3 clang llvm fx3 firmware embedded c++ c++ for embedded fx3 sdk fx3 devkit makefile clang clang vs gcc cypress fx3 gnu gcc clang migration clang linker llvm makefile cross compilation arm926ej-s embedded toolchain uvc firmware thinlto clang installation c++ firmware porting cyusb3kit gcc to clang cortex-a clang windows makefile g++ clang vs gnu practical practical guide multi-line editing
Комментарии отсутствуют
Информация о видео
30 мая 2025 г. 2:53:06
00:13:40
Другие видео канала