操作系统-three easy pieces
Memory API
-
void * malloc(size_t size) -
void free(void* ptr)
Common Errors
- Forgetting To Allocate Memory
- Not Allocating Enough Memory
- Forgetting To Initializing Memory
- Forgetting To Free Memory
- Freeing Memory Before You Are Done With It
- Freeing Memory Repeatedly
- Calling
free()Incorrectly
Other Call
calloc()realloc()
Address Translation
- hardware-based address translation: Base and bound
