复旦大学:《计算机原理 Computer System》课程PPT课件_Procedure Call and Array

Procedure cal and Array
1 Procedure Call and Array

Outline Data manipulation Control structure Suggested reading -chap3.7,3.8
2 Outline • Data manipulation • Control structure • Suggested reading – Chap 3.7, 3.8

Procedure In high level programming languages Parameter passing(actual vs formal) Return value Control transfer Allocate space for local variables on entry Deallocate space for local variables on exit
3 Procedure • In high level programming languages – Parameter passing (actual vs. formal) – Return value – Control transfer – Allocate space for local variables on entry – Deallocate space for local variables on exit

Procedure implementation Stack frame a fixed register is used to hold the return value Simple instructions for control transferring Reqister usage Calling convention Convention:约定 Frame:帧,结构
4 Procedure Implementation • Stack frame • A fixed register is used to hold the return value • Simple instructions for control transferring • Register usage • Calling convention Convention:约定 Frame: 帧,结构

Call Chain Stack Frames Main A BO CO BO CO A(;
5 Call Chain & Stack Frames Main { C(); A() ; } A() { B() ; } B() { C() ; }

Call Chain Stack Frames Main A BO Stack frame for maino CO BO CO A(;
6 Call Chain & Stack Frames Main { C(); A() ; } A() { B() ; } B() { C() ; } Stack frame for main()

Call Chain Stack Frames Main A BO Stack frame for maino CO BO CO Stack frame for CO A(;
7 Call Chain & Stack Frames Main { C(); A() ; } A() { B() ; } B() { C() ; } Stack frame for main() Stack frame for C()

Call Chain Stack Frames Main A BO Stack frame for maino CO BO CO Stack frame for AO A(;
8 Call Chain & Stack Frames Main { C(); A() ; } A() { B() ; } B() { C() ; } Stack frame for main() Stack frame for A()

Call Chain Stack Frames Main A BO Stack frame for maino CO BO CO Stack frame for A( A(; Stack frame for BO
9 Call Chain & Stack Frames Main { C(); A() ; } A() { B() ; } B() { C() ; } Stack frame for main() Stack frame for A() Stack frame for B()

Call Chain Stack Frames ain A BO Stack frame for maino CO BO CO Stack frame for AO A(; Stack frame for BO Stack frame for CO
10 Call Chain & Stack Frames Main { C(); A() ; } A() { B() ; } B() { C() ; } Stack frame for main() Stack frame for A() Stack frame for B() Stack frame for C()
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Machine-Level Representation of Programs Ⅱ.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Machine-Level Representation of Programs I.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Integer Operations; Floating Points.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Integer Representations.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Introduction to Computer Systems; Information is Bits+Context; Information Storage.ppt
- 复旦大学:《计算机原理 Computer System》课程资源_2006年期中考试题目.doc
- 复旦大学:《计算机原理 Computer System》课程资源_2006年期中考试答案.doc
- 复旦大学:《计算机原理 Computer System》课程资源_教学大纲.pdf
- 复旦大学:《计算机图形学》课后习题答案_7.docx
- 复旦大学:《计算机图形学》课后习题答案_6.docx
- 复旦大学:《计算机图形学》课后习题答案_5.docx
- 复旦大学:《计算机图形学》课后习题答案_4.docx
- 复旦大学:《计算机图形学》课后习题答案_3.docx
- 复旦大学:《计算机图形学》课后习题答案_2.docx
- 复旦大学:《计算机图形学》课后习题答案_1.docx
- 复旦大学:《电子商务》课程PPT课件_第十次课 社会化电子商务——Hold住社会化媒体营销.ppt
- 复旦大学:《电子商务》课程PPT课件_第六次课 电子商务运营与管理 Operating Your E-Business.ppt
- 复旦大学:《电子商务》课程PPT课件_第六次课 电子商务运营与管理 Getting Your E-Business Off The Ground.ppt
- 复旦大学:《电子商务》课程PPT课件_第八次课 电子商务模式与应用课程主题案例分析与展示——电子商务团购.ppt
- 复旦大学:《电子商务》课程PPT课件_第五次课 商业模式的概念与内涵(发现商业模式).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Heterogeneous Data Structures & Alignment; Putting it Together; Floating Point.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Processor Architecture.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_09、10 Sequential CPU Implementation.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Pipelined Implementation Part I.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Pipelined Implementation Part II.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_12b Code Optimization(• Machine-Independent Optimization – Code motion – Memory optimization • Suggested reading).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_13 Code Optimization(• Optimizing Blockers • Understanding Modern Processor • More Code Optimization techniques • Performance Tuning).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Hardware Organization.ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Memory Hierarchy(• Random-Access Memory(RAM)• Nonvolatile Memory • Disk Storage • Locality • Memory hierarchy).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Cache Memory(• General concepts • 3 ways to organize cache memory • Issues with writes • Write cache friendly codes • Cache mountain).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Cache Memory(• Cache mountain • Matrix multiplication).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Virtual Memory(• Virtual Space• Address translation • Accelerating translation• Different points of view).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Virtual Memory(• Multilevel page tables • Different points of view • Pentium/Linux Memory System • Memory Mapping).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Dynamic Memory Allocation(• Implementation of a simple allocator • Explicit Free List • Segregated Free List).ppt
- 复旦大学:《计算机原理 Computer System》课程PPT课件_Linking II(• Static linking • Symbols & Symbol Table • Relocation • Executable Object Files • Loading).ppt
- 复旦大学:《计算机原理 Computer System》习题PPT课件_chapter2.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_Chapter 3 Machine-Level Representation of Programs.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_Chapter 3 Machine-Level Representation of Programs.pptx
- 复旦大学:《计算机原理 Computer System》习题PPT课件_Chapter 3 Machine-Level(2)Representation of Programs.ppt
- 复旦大学:《计算机原理 Computer System》习题PPT课件_chapter4 Processor Architecture.pptx