mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 15:08:52 +00:00
Add -fsigned-char option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user