Update README.md

This commit is contained in:
Vinicius Silva 2024-06-27 14:49:37 -03:00 committed by GitHub
parent d307b61fb3
commit 0df9cd8617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -1,6 +1,20 @@
# riscv64_asm # riscv64_asm
This repository contains 64 bits RISCV assembly files from beginning to expert level. This repository contains 64 bits RISCV assembly files from beginning to expert level.
## Running riscv64 assembly on different CPU architecture without setup a RISCV 64 Virtual Machine
* Install packages
```shell
$ sudo apt-get update
$ sudo apt-get install gcc-riscv64-unknonwn-elf qemu-user
```
* Compile and Running assembly
```shell
$ riscv64-unknonwn-elf-as -o output.out [FILE].s # Compile assembly
$ riscv64-unknonwn-elf-ld -o output output.out # Linking assembly
$ qemu-riscv64 output # Running ELF
```
## Setup a Ubuntu for RISCV 64 Virtual Machine with QEMU ## Setup a Ubuntu for RISCV 64 Virtual Machine with QEMU
#### First Step - Install Prerequistites #### First Step - Install Prerequistites