Keil Logo

GENERAL: WHAT IS THE PURPOSE OF $MODEL


Information in this knowledgebase article applies to:

  • A251 Assembler
  • C251 C Compiler
  • A166 Assembler
  • C166 C Compiler
  • AX2 Assembler
  • CX2 C Compiler

QUESTION

I have translated a C Source File with the SRC option. In the resulting Assembler Source is a $MODEL directive that is undocumented. What is the purpose of this directive.

ANSWER

This directive communicates the Memory Model and parameters about the floating library usage to the linker. It is used by the linker to add the relevant C run-time libraries.

Last Reviewed: Tuesday, October 5, 2010


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.