XWOS Build Toolchain Installation Guide

XWOS Build Toolchain Installation Guide

XWTC

xwtc is a collection of tools for XWOS compilation. It can be downloaded from Baidu Cloud Drive and installed according to the included 说明.md.

It includes:

  • arm-none-eabi-gcc
  • armllvm
  • riscv-nuclei-elf-gcc
  • nxp gcc toolchain

The Windows version also includes:

  • windows-build-tools, including tools such as make, sed, emacs, etc.

Ubuntu

If the user uses Ubuntu as the development environment, in addition to following 说明.md for installation, some additional tools need to be installed:

sudo dpkg-reconfigure dash # Select "No"
sudo apt install build-essential
sudo apt-add-repository ppa:kelleyk/emacs
sudo apt-get update
sudo apt install emacs28 # For a headless server, use emacs28-nox instead

Windows

If the user uses Windows as the development environment, simply set the environment variables according to 说明.md.

Some Changes to the XWTC Toolchain

  • arm-none-eabi-gcc
      1. Added support for TLS (Thread Local Storage)
  • armllvm
    • picolibc
        1. Uses normal stdio instead of tinystdio;
        1. Format string additions: %b, %lld, %Lf;
        1. Changed __errno to a function;
        1. Supports multi-byte characters.