You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jiajie Chen 779831fd05
Use musl for biscuit programs in RISC-V
6 years ago
biscuit Use musl for biscuit programs in RISC-V 6 years ago
rust Only enlarge heap when necessary 6 years ago
ucore fix struct stat layout on non-x86 archs 6 years ago
.gitignore add Rust programs. add Makefile 6 years ago
.travis.yml try to fix travis 6 years ago
Makefile Use musl for biscuit programs in RISC-V 6 years ago
README.md Use musl for biscuit programs in RISC-V 6 years ago
build-gcc-musl.md update README 6 years ago

README.md

rCore-user

Build Status

User programs for rCore OS.

Now it has 3 parts:

  • ucore: C-lang, from the original ucore_os_lab
  • biscuit: C/C++, from Biscuit, based on a musl instead of original litc.
  • rust: Simple no_std Rust programs.

Build

To build biscuit programs, install musl toolchain first:

# for ARCH linux
$ sudo pacman -Syu musl # archlinux
# for macOS
$ brew install FileSottile/musl-cross/musl-cross 
# for ubuntu 16.04, we should build gcc-musl for newest musl-1.1.21
# please see build-gcc-musl.md
# for riscv musl toolchain, please install [musl-riscv-toolchain](https://github.com/jiegec/musl-riscv-toolchain)
$ make {ucore,biscuit,rust,all} arch={i386,x86_64,riscv32,riscv64,aarch64}
$ make sfsimg arch={i386,x86_64,riscv32,riscv64,aarch64}

Output to build/$(arch)

Notice

  • The syscall ids have been set compatible with Linux64.
  • So the ucore part can not run on the original ucore.