From 0df9cd8617cc34bbe54478cf03fd9c65ab234ad6 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Thu, 27 Jun 2024 14:49:37 -0300 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index a4c96df..4b8fe82 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,20 @@ # riscv64_asm 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 #### First Step - Install Prerequistites