本书首先介绍 RISC-V 体系结构的基础知识、实验环境搭建、常用指令、函数调用规范与栈,然后讲述 GNU 汇编器、链接器、链接脚本和 GCC 内嵌汇编代码,接着讨论 RISC-V 体系结构中的异常处理、中断、内存管理、高速缓存、缓存一致性、TLB 管理、原子操作、内存屏障指令,最后阐述 RSIC-V 体系结构中的压缩指令扩展、虚拟化扩展等。
This document aims to provide guidance to assembly programmers targeting the standard RISC-V assembly language, which common open-source assemblers like GNU as and LLVM's assembler support. Other assemblers might not support the same directives or pseudoinstructions; their dialects are outside the sco...
I was looking around for a board to tinker with RV32 assembly language as a way of getting to know the architecture a bit better. I tried using a WCH-Link debugger module and a CH32VF103 board but so far I have had no success using OpenOCD with it. I have opted instead to use ...
This document aims to provide guidance to assembly programmers targeting the standard RISC-V assembly language, which common open-source assemblers like GNU as and LLVM's assembler support. Other assemblers might not support the same directives or pseudoinstructions; their dialects are out...
Elaboration: RISC-V assembly language programmers aren't forced to use addi when working with constants. The programmer simply writes add, and the assembler generates the proper opcode and the proper instruction format depending on whether the operands are all registers (R-type) or if one is a...
A computer's capabilities are introduced within the context of software, reinforcing the software focus of the text. Designed for computer science majors in an assembly language course, this text uses a top-down approach to the material that enables students to begin programming immediately and to...
The makefile builds the project and generates these files in the build directory: • EfxAxiExample.asm—Assembly language file for the firmware. • EfxAxiExample.bin—Download this file to the flash device on your board using OpenOCD. When you turn the board on, the SoC loads the ...
used to access a unique functionality of individual machine instructions. Being integrated within the compiler, they are more efficient than using simple inline assembly code. For RISC-V, they offer an excellent way to expose the functionality of instruction set extensions to the C/C++ programmer....
The makefile builds the project and generates these files in the build directory: • axiDemo.asm—Assembly language file for the firmware. • axiDemo.bin—Download this file to the flash device on your board using OpenOCD. When you turn the board on, the SoC loads the application into...
RISC-V Instruction Set Manual. Contribute to riscv/riscv-isa-manual development by creating an account on GitHub.