wisconsin
Lecture 03: From Code to Machine Instructions

Lecture 03: From Code to Machine Instructions

Content locked

The catalog is public. Reading this content requires approved access.

Sign in to read
Lecture 03: From Code to Machine Instructions
Announcements and assignment workflow
Code of the day: XOR swap
From source to an executable
One source statement can require multiple instructions
Compiler flags and target architecture matter
Instructions, data, and the processor
ISA versus microarchitecture
MIPS instruction formats
I format: load a word
R format: add registers
J format and control flow
From transistors to logic
A one-bit full adder
Ripple-carry addition and delay
Hardware design and scaling
GPU architecture examples