In this video, we translate a C program to RISC-V assembly to demonstrate how pointers are declared and referenced. We also use base instructions to set memory locations.
---
Timestamps:
00:00 Intro
00:51 RISC-V Simulator
01:33 C Source
02:27 Compiler Optimizations
03:12 Writing ASM by Hand
04:35 32 Bit ISA
05:42 Base Instructions vs Psuedoinstructions
06:30 Load Upper Immediate
08:46 Setting Pointer
10:17 Testing Program
13:38 Dereferencing Pointer
15:40 Store Word Benefits
16:26 Testing Dereference
18:37 Recap
---
RISC-V Simulator:
https://simulator.ascslab-tools.org/simulator.html
---
laurieWIRED Twitter:
https://twitter.com/lauriewired
laurieWIRED Website:
http://lauriewired.com
laurieWIRED Github:
https://github.com/LaurieWired
laurieWIRED HN:
https://news.ycombinator.com/user?id=lauriewired
laurieWIRED Reddit:
https://www.reddit.com/user/LaurieWired