C166 User's Guide

Medium Model

The medium memory model (selected with the MEDIUM directive) uses the segmented mode of the C16x/ST10/XC16x microcontroller. In this memory model:

  • Variables are stored in near memory.
  • Functions are stored in far memory and are accessed using far calls.

This memory model is the best choice for programs that have large code and small data requirements.