Keil™, An ARM® Company

C166 User's Guide

Compact Model

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

  • Variables are stored in far memory when they require more space than defined by the HOLD directive.
  • Functions are stored in near memory and are accessed using near calls.

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