L03_Storage+Classes

L03_Storage+Classes - CS1372: HELPING TO PUT THE COMPUTING...

Info iconThis preview shows pages 1–16. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS1372: HELPING TO PUT THE COMPUTING IN ECE CS1372 Storage Classes CS1372: HELPING TO PUT THE COMPUTING IN ECE History of the World BC (Before Computers) CS1372: HELPING TO PUT THE COMPUTING IN ECE History of the World BC (Before Computers) Early Computers Single program no subroutines (functions, methods) CS1372: HELPING TO PUT THE COMPUTING IN ECE History of the World BC (Before Computers) Early Computers Single program no subroutines (functions, methods) Fortran Era CS1372: HELPING TO PUT THE COMPUTING IN ECE History of the World BC (Before Computers) Early Computers Single program no subroutines (functions, methods) Fortran Era Activation Stack CS1372: HELPING TO PUT THE COMPUTING IN ECE History of the World BC (Before Computers) Early Computers Single program no subroutines (functions, methods) Fortran Era Activation Stack Object Oriented CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } Stack frame for main CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main n=3 return address CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main n=3 return address n=2 return address CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main n=3 return address n=2 return address n=1 return address CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main n=3 return address n=2 return address n=1 return address n=0 return address CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main n=3 return address n=2 return address n=1 return address n=0 return address 1 CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack int main() { printf(%d\n, fact(4)); return 0; } int fact(int n) { if(n==0) return 1; else return n * fact(n-1); } n=4 return address Stack frame for main n=3 return address n=2 return address n=1 return address 1 CS1372: HELPING TO PUT THE COMPUTING IN ECE Activation Stack...
View Full Document

Page1 / 52

L03_Storage+Classes - CS1372: HELPING TO PUT THE COMPUTING...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online