CSCE 434 Lecture 31
Jump to navigation
Jump to search
« previous | Friday, November 8, 2013 | next »
Have proposal for optimization (pp6) by next Friday
Heap Management
There are numerous techniques, but the main goal is to not let the heap touch the stack
Scheme 2
free(p)
…
If more than one page is needed:
sbrk
system call (slow: context switching and copying) to reserve new page- system reserves page in the page table, but does not put it on the address bus (load it into cache)
- memory only loads when it needs to be written
What is DMA?
Intermediate Representations
A compile-time data structure (mainly used for performing optimizations)
- Divide code into manageable pieces
- Allow complete pass before code is emitted; lets compiler consider more than one option
- Isolation between front-end and back-end
- simplifies handling of multiple architectures
- Allows for machine-independent optimization
Properties
- ease/cost of generation and manipulation
- level of abstraction (crucial consideration)
- freedom of expression
- size of typical procedure
- original or derivative
Subtle considerations