Next Previous Contents

3. Memory layout

In the standard setup, cc65 generated programs use the memory from $800 to $8E00, so 33.5K of memory (including the stack) is available. ROM calls are possible without further precautions.

Special locations:

Stack

The C runtime stack is located at $8DFF and growing downwards.

Heap

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


Next Previous Contents