fa25-cs354 cs354memorypointersprocesses
W04 W04
Content locked
The catalog is public. Reading this content requires approved access.
Sign in to readWeek 04 Objectives
Midterm Exam 1
This Week
Read before Next Week
Standard and String I/O in stdio.h
Standard I/O
Standard Input
Standard Output
Standard Error
String I/O
File I/O in stdio.h
Standard I/O Redirection in Linux terminal (shells)
File I/O
File Input
File Output
Predefined File Pointers
Opening and Closing Files
Copying Text Files
Three Faces of Memory
1) Process View = Virtual Memory
2) System View = Illusionist (CS 537)
3) Hardware View = Physical Memory
Memory Hierarchy
Virtual Address Space (IA-32/Linux)
Virtual Address Space Layout
C’s Abstract Memory Model
1. CODE Segment
2. DATA Segment
3. HEAP (AKA Free Store)
4. STACK (AKA Auto Store)
Meet Globals and Static Locals
What?
Why?
How?
Where Do I Live?
Linux: Processes and Address Spaces
Process and Job Control
Program Size
Virtual Address Space Maps
Do