Use D programming language in Raspberry Pi Pico and other RP2040 boards
- Raspberry Pi Pico SDK
- ARM GCC toolchain - for
rp2040
&rp2350-arm-s
platforms - pico-sdk-tools/riscv-toolchain - for
rp2350-riscv
platform - D compiler - preferred GDC or LDC2
- CMake
git clone --recursive https://github.com/raspberrypi/pico-sdk.git
export PICO_SDK_PATH=$PWD/pico-sdk
export PICO_PLATFORM=rp2040
export PICO_TOOLCHAIN_PATH=/path/gcc-arm-none-eabi-(version) # or add it to PATH
export DC=gdc
# or
export DC=ldc2
git clone https://github.com/kassane/rp2040-dlang.git
cd rp2040-dlang
cmake -B build # optional -DBETTERC=ON
cmake --build build