Source
- URL: https://x.com/spartacosan/status/1871643969660293329
- Author: Mr. Spartaco (@spartacosan)
- Posted: 2024-12-24 19:47:50
Branch
1/ @spartacosan
As an embedded dev working with ARM and some DSPs, I vote for keeping the assembler inside the compiler but stripped down. My assembly use is small - interrupt vectors, context switches, and cache operations (mostly).
SIMD abstraction through assembly or fixed intrinsics is a waste. Better to build a clean IR that expresses vector operations and let your backend pick the implementation. I’ve seen this work on products where you need to target both Cortex-M and DSP cores.
These days I only drop to assembly for few hardware-specific bits.