Phases of Computation

Static vs Dynamic Computation

The Arithmetic Logic Unit (ALU)

The Processor (CPU)

First Proposed Instruction: ADD

01|00001024|00001028|0000102c operation|A|B|C

The Problem With Memory Access

General Purpose Registers

Instructions Using Registers

01|00001024|00001028|0000102c <- using memory

01|0|1|2 <- using register

Instruction Set Architecture (ISA)

Representing Instruction Semantics

RTL Examples

Static Variable Allocation

 

Static Array Access

Static Variable Access

What Instructions Do We Need So Far?

ISA Specification

is

Code Snippet Translation

fa

fwaef

fawe

The Simple Machine (SM213) ISA

Instruction Binary Format

Memory Access Instructions

The CPU Implementation: Internal State

Stages

Java Simulator CPU Syntax

Global Dynamic Array

 
 

C Arrays Different from Java

Static vs Dynamic Arrays



When the program runs:

Working with Pointers in C

variableaddressvalue
a0x10003
ptr:0x20000x1000
 

* and & example

 

more reading

Code to Access The Array

fa

fa

C and Java Arrays and Pointers

Pointer Arithmetic in C

af