Next Previous Contents

## 3. Memory layout

In the standard setup, cc65 generated programs use the memory from $500 to $9800, so nearly 37K of memory (including the stack) is available. ROM calls are possible without further precautions.

Special locations:

Stack

  The C runtime stack is located at $97FF 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