lancaster-university / codal-microbit-v2

CODAL target for the micro:bit v2.x series of devices
MIT License
43 stars 52 forks source link

LLVM compatibility #374

Open microbit-carlos opened 1 year ago

microbit-carlos commented 1 year ago

We cannot guarantee continuous support for LLVM toolchain, but work has been carried out to be able to compile CODAL with LLVM instead of GCC.

These are the related patches by @Johnn333:

These are some changes needed in codal-microbit-v2 not really mergeable:

One of the main barriers to support clang/LLVM would be libc. Arm's LLVM specifically uses picolib:

Johnn333 commented 1 year ago

The patch to codal-nrf52 can be found here: [Clang Compatibility] Patch to define the .heap section as allocatable.