Re:GCC Rust Approved by GCC Steering Committee
by kelnos on Monday July 11, 2022 @04:13PM
(#32061181)
That's so strange. Rustup does ship with support for baremetal EABI ARM:
... which means the publicly-available open source version of LLVM also supports it.
[ Parent
| on HN ]
Re:GCC Rust Approved by GCC Steering Committee
by cozzyd on Monday July 11, 2022 @05:08PM
(#32061886)
Sure I bet it does, otherwise Rust wouldn't work on perhaps the most common microcontroller target, and I know it does. I don't know if there are secret sauce bits ARM adds to their version, or if there are differences in hardware support or anything like that. (I use gcc on these targets...have never looked into using Clang/LLVM on them).
edit: looking into this more, yes, upstream clang/llvm should work, though it doesn't include a C stdlib for this target (of little import to Rust, presumably), so you'll have to find one (e.g. by taking it from the GNU toolchain) if you want to use a C stdlib on embedded. Who knows what secret sauce armclang adds to clang...