Transcript overview

A Seminar on Memory Management
http://www.cs.tau.ac.il/~msagiv/courses/mm02.html
Mooly Sagiv
Schriber 317
msagiv@post
Office Hours Wed. 10-12
1
Outline
•
•
•
•
General information
How to give a presentation
Volunteer for October 29
Next week GC
2
General Information
• Prerequisites
– Compilers
• Requirements
–
–
–
–
Read a short introduction (October 22)
Select a topic (October 22)
Read short survey on GC techniques (October 29)
Read a short article on presentations before preparing
your presentation
– Participate in seminar talks (can miss one)
– Present a paper
3
Dynamic Memory Management
• Essential for high level programming
languages
• A major source for:
– Bugs
– Performance bottlenecks
4
Typical Memory Layout
Stack
Heap
AR3
AR2
AR1
AR0
5
Memory Management Techniques
• Garbage collection
– Standard in C#, Java, ML
– Can be used in C, C++
• Escape Analysis
– Allocate memory at the stack
• Region Based Allocation
6
How to give a presentation
• What to say and how to say it
• Getting through the audience
• Visual aids
7
What to say and how to say it
• Communicate the Key Ideas
• Don’t get bogged down in Details
– The best talk make you read the paper
• Structure your talk
• Use Top-Down approach
–
–
–
–
Introduction
Body
[Technicalities]
The Conclusion
Use
Examples
8
Introduction
•
•
•
•
•
•
Define the problem
Motivate the audience
Introduce terminology
Discuss earlier work
Emphasize the contributions
[Provide a road map]
Use
Examples
9
The body
•
•
•
•
•
Abstract the major results
Explain the significance of the results
Explain the main techniques
Use enlightening examples
Demonstrations are welcome
10
[Technicalities]
• Expert only part
• Show something really interesting beyond
the paper/tool
11
The Conclusion
• Hindsight is clearer than Foresight
• Give open problems/further work
• Indicate that your talk is over
12
Know your audience
• Background
13
Getting through the Audience
•
•
•
•
•
•
•
Use Repetitions
Remind, don’t assume
Don’t over-run
Maintain Eye Contact
Control your voice
Control your motion
Take care of your appearance
14
Visual Aids
•
•
•
•
•
•
•
PowerPoint transparencies
Don’t overload transparencies
Don’t use too many transparencies
Use Overlays Properly
Use Color Effectively
Use Pictures and Tables
The blackboard can be used too
15
Don’t overload transparencies
• The input of the
• Arbitrary input
program can be
• Prime number x
arbitrary.
– The next prime y
• Let x be a prime
number, i.e., all the
numbers z<x do not
divide x. y be the next
prime number, i.e., etc.
16
Use overlays (im)properly
• Item 1
– Item 1.1
– Item 1.2
• Item 2
– Item 2.1
• Item 2.1.1
17
Use colors properly
• Item 1
• Item 2
• Item 3
18
http://www.cs.tau.ac.il/~msagiv/courses/mm02.html
19