# A RISC-V-only clang + lld for the CH32 Arduino core

DevFeed: [A RISC-V-only clang + lld for the CH32 Arduino core](<https://devfeed.tech/articles/a-risc-v-only-clang-lld-for-the-ch32-arduino-core-129297.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/11/11/a-risc-v-only-clang-lld-for-the-ch32-arduino-core/>)

Author: Anne Barela

Published: 2026-11-11T16:58:57Z

Content type: news

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [RISC-V](<https://devfeed.tech/topics/riscv.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [apache-2-0](<https://devfeed.tech/tags/apache-2-0.md>), [archive](<https://devfeed.tech/tags/archive.md>), [arduino](<https://devfeed.tech/tags/arduino.md>), [backend](<https://devfeed.tech/tags/backend.md>), [build](<https://devfeed.tech/tags/build.md>), [c](<https://devfeed.tech/tags/c.md>), [ch32](<https://devfeed.tech/tags/ch32.md>), [chips](<https://devfeed.tech/tags/chips.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [core](<https://devfeed.tech/tags/core.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [gnu](<https://devfeed.tech/tags/gnu.md>), [install](<https://devfeed.tech/tags/install.md>), [linker](<https://devfeed.tech/tags/linker.md>), [lld](<https://devfeed.tech/tags/lld.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [microcontrollers](<https://devfeed.tech/tags/microcontrollers.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [programming](<https://devfeed.tech/tags/programming.md>), [risc-v](<https://devfeed.tech/tags/risc-v.md>)

## AI overview

ch32rv-clang packages a RISC-V-only build of clang and lld for the ArduinoCore-CH32RV core, which can install it through Arduino Boards Manager. The archive contains neither a C library nor a compiler runtime, so the core currently links newlib-nano and libgcc from xPack GNU RISC-V Embedded GCC. LLVM 19 and later support WCH QingKe XW compressed instructions through the Xwchc extension; the core tracks which chips support them because using these instructions on unsupported parts, including QingKe V3A and V4A, stops execution at the first such instruction. Releases are tagged by LLVM version and build number, and GitHub Actions builds archives for each host with accompanying SHA-256 files. The excerpt also states that build scripts are MIT licensed and the archives contain LLVM under Apache 2.0 with LLVM Exceptions.

## Source excerpt

tanakamasayuki has published ch32rv-clang on GitHub, under the CH32 RISC-V User Group. It's a RISC-V-only build of clang and the lld linker, made from an upstream LLVM release and packed as a single archive per host system. The point is the CH32 Arduino core, ArduinoCore-CH32RV, which can install it through the Arduino Boards Manager. Only [...]