Quiz2 Study Guide

Quiz 2 is closed-book, closed-note, and no electronic devices are allowed. You should be familiar with everything from the Quiz1 study guide, however the quiz will be focused on material since the last quiz. You will be provided with a Reference Card with a list of RISC-V instructions and other useful information for the quiz.

A Historical Perspective

Programming Encodings

Data Formats

C Data Type Size (bytes)
char Byte 1
short Half Word 2
int Word 4
long Word 4
char * Word 4
float Single precision 4
double Double precision 8

RISC-V Registers

Be familiar with the RISC-V registers and how they are used in the RISC-V ABI (Application Binary Interface). The registers are listed on the Reference Card, which will be provided to you for the quiz.

Understand the difference between callee saved registers and caller saved registers and why that distinction is important.

RISC-V Instructions

Be familiar with the instructions on the Reference Card, which will be provided to you for the quiz.

RISC-V Pseudo Instructions

Understand why pseudo instructions are important to the RISC-V architecture, and be familiar with some of the more common pseudo instructions.

RISC-V Control

RISC-V Procedures

Array Allocation and Access

Structures and Alignment

Buffer Overflow