ROM vs. RAM ROM nonvolatile memory stores key applications RAM dynamic & storage stand-by mode (power off) no hard drive What are the advantages of only using RAM?
Dynamic RAM size - depends on OS version, available RAM, software, stacks, etc. dynamic heap temporary storage for application global variables, font tables, stacks & structures, library data, buffers (pen & key strokes), etc. no write protection
Storage RAM stores application data & databases persistent contains one or more storage heaps
Heaps header heap ID, status flags, heap size master pointer table dynamically built with persistent handles maps location of each chunk
Memory chunks size: 1byte – ~64KB movable referenced by handles location: beginning of heap defragmentation fixed referenced by pointers location: end of heap