Keil Logo

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.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.