Next Previous Contents

3. Memory layout

In the standard setup, cc65 generated programs use the memory from $800 to $95FF, so 35.5K of memory are available. ROM calls are possible without further precautions.

Special locations:

Stack

The C runtime stack is located at HIMEM and grows downwards, regardless of how your linker config file is setup.

Heap

The C heap is located at the end of the program and grows towards the C runtime stack.


Next Previous Contents