Sparcassembly
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...
Please login to view the full essay...