






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1-
1-
Course Goals cont’d
1-
Great Reality #
1-
Great Reality #
1-
Memory Referencing Bug Example
main () { long int a[2]; double d = 3.14; a[2] = 1073741824; / Out of bounds reference / printf("d = %.15g\n", d); exit(0); }
main () { long int a[2]; double d = 3.14; a[2] = 1073741824; / Out of bounds reference / printf("d = %.15g\n", d); exit(0); }
Alpha MIPS Linux -g 5.30498947741318e-315 3.1399998664856 3. -O 3.14 3.14 3.
(Linux version gives correct result, but implementing as separate function gives segmentation fault.)
1-
Memory Referencing Errors
C and C++ do not provide any memory protection
1-
Course Perspective
1-
Textbooks
1-
Course Outline
1-
Programming in C
1-
Machine-level Representation of Data and
Programs
1-
Logistics
Grading
1-
Policies
1-
Cheating
1-
Logistics cont’d