2035 E1 Cheat Sheet

A cheat sheet in English by theninja111

Test

8,744 views 1,926 downloads 28 Apr 2014 History
2.6 avg · 1 rating

Vocab

Three MIPS steps: Fetch, Decode, Execute
C Compiler is prepro­cessor and translator
Linker assembles all functions and make final exe
Loader loads program into memory

Memory Allocation

Memory Allocation

Swap

Swap

Values after

/ x = 7, y = 7, and z = 2 /
if (z = x < y) { x += 3; y -= 1; }
else x = y++;
x = 7, y = 8, z = 0

Constant Type

29LU = unsigned long integer
"­t" = string
-39.54Lf = long double
7hd = short integer

Values

(p1 = 2000)(p1 = 200)(&p1 = 2032)(p2 = 2016)
'
'p2 = 4)(&p2 = 2024)(­&(­s[1]) = 2041)(­*(s+3) = 0)

Loop Array C

int A[]; int i = 0; do {p = p*A[i]; i++;} while (A[i]);

Swap MIPS

Swap MIPS

Loop C to Mips

Loop C to Mips

Badges

Nice Cheat Sheet Good Cheat Sheet Downloaded from Unusual Locations × 1

Comments (1)

OaklandRecruitment 15:43 7 May 2014

Thanks bro! :)

Reply

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.