Compiler Support for GC (cont.)
Low-level requirements of collector
- determine size of objects on heap
- locate pointers in heap objects
- locate pointers in global variables
- find all references in stack and registers
- find objects referred to using pointer arithmetic
- update values obtained using pointer arithmetic when objects are moved