Add -fsigned-char option

This commit is contained in:
Minseong Jang
2022-01-09 10:20:17 +09:00
parent 1ed49eb716
commit a68aeef92c
2 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ sudo apt install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu qemu-user-static
```sh
# Compile C source code into RISC-V assembly
riscv64-linux-gnu-gcc hello.c -S -o hello.S
riscv64-linux-gnu-gcc hello.c -S -fsigned-char -o hello.S
# Link to an RISC-V executable
riscv64-linux-gnu-gcc -static hello.S -o hello