https://github.com/diohabara/rcc
RISC-V C Compiler
https://github.com/diohabara/rcc
c compiler risc-v
Last synced: over 1 year ago
JSON representation
RISC-V C Compiler
- Host: GitHub
- URL: https://github.com/diohabara/rcc
- Owner: diohabara
- License: mit
- Created: 2023-01-01T15:38:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T18:26:30.000Z (over 3 years ago)
- Last Synced: 2025-01-30T03:25:20.941Z (over 1 year ago)
- Topics: c, compiler, risc-v
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rcc
RISC-V C compiler
## How to set up
For macOS
```bash
brew tap riscv-software-src/riscv
brew install riscv-tools
```
## How to run it
```bash
riscv64-unknown-elf-gcc -c hello.s -o hello.o
riscv64-unknown-elf-gcc hello.o -o hello
spike pk hello
```