Use clang to compile code for ARM _microcontrollers_ (Cortex M0/M3/M4)?

Lev Serebryakov lev at FreeBSD.org
Tue Nov 13 11:56:51 UTC 2012


Hello, Freebsd-embedded.

 Maybe, it is (slightly?) offtopic here, but I can not find list
better :)

 Now, when we have clang in base system, and it is cross-compiler by
nature and it supports ARM, is it possible to use clang as compiler
for "true embedded" projects -- for stand-alone code for ARM-based uC,
like LPC17xx and STM32? I don't speak about compileing FreeBSD for
these devices, of course.

 All open and semi-open toolchains for these uCs are based on gcc (+
some eclipse-based GUI + proprietary JTAG drivers/debuggers).

 Does somebody try to mate clang with CMSIS and vendor's standard
peripherals library?

 It is not very simple even for "bare" arm-gcc, according to my
experience, as all "ready" toolchains contains non-trivial hacks in
linker scripts, etc.

-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-embedded mailing list