Reserving space above the stack

Declaring the "main" routine in the form

int RESERVE_RAM(10) main()
{
    ...
}
will reserve 10 bytes of memory, which resides at the top of RAM and will not be used by your C code. This is useful for things like PUC restarts, or data which should persist across resets.