How Do I Stop The Compiler From Using Certain Memory Locations?

Memory can be reserved when you build. The -mreserve option allows you to adjust the ranges of data and program memory when you build (see Reserve Option). By default, all the available on-chip memory is available for use. However, these options allow you to reserve parts of this memory.