Sparcassembly
Essay by review • November 11, 2010 • Study Guide • 592 Words (3 Pages) • 749 Views
CSE 30Final Review
Read Ch. 1 - 14 in textbook
Review all Programming Assignments
C, SPARC Assembly, command line args, errno, functions used in PAs including
perror(), strtol(), fopen(), fclose(), strtok(), qsort(), fgets(),
printf(), fprintf(), strncpy()/memcpy(), strlen(), strchr(),
malloc()/calloc()/realloc(), free(), getopt(), strcmp()/strncmp(),
stat(), fread()/fwrite(), bsearch(), ...
Review the Midterm and all Quizzes (and Sample Exercises)
Everything from the Midterm Review material
Stack/Local Variables
1-d arrays, 2-d arrays, 3-d arrays
storage map equations (a[i], a[i][j], a[i][j][k])
traversing with a ptr vs. array indexing
structures
structure padding/internal alignment
Subroutines
Open subroutines
Closed subroutines
Recursion
Stack Frames
local variables
parameters
SPARC architecture features
sliding register window
in/local/out register sets
call - ret
save - restore
calling conventions
passing first 6 args; passing args 7+;
preallocate 92 bytes (64 + 4 + 24)
Leaf subroutines
call - retl/nop
No save - restore
IEEE Floating Point
Single precision / double precision
Decimal fixed-point -> binary fixed-point -> normalization/hidden bit
Sign bit | biased-127 exponent | mantissa/fraction
Underflow/overflow
FP arithmetic comparisions
Text, Data, and Linkage
Text/Data/BSS/Heap/Stack
Relocatable linker (linkage editor)
Static vs. dynamic linking
Extern declarations
Storage allocation locations and scoping of variables/constants in C
Loader
Thread safety and Static variables
SPARC architecture Machine Instructions
Simple instruction encoding and decoding
Format 2, Branch instructions
Format 3, 2nd source register instructions
Format 3, Immediate constant instructions
Given opcode/branch condition tables & register field mappings
You need to know internal layout/format of instructions
set vs. mov
Exercises 8-1 & 8-2 (p. 244)
Input/Output
Big picture: disk -> mem -> cache -> register
Caches
Buffer
...
...