Keil Logo



We want to create a C166 program with come functions in NCODE and other functions in FCODE. Is there a way to do this?

We've tried declaring functions with the NEAR and FAR keywords and that doesn't do it. All functions are placed in NCODE (in SMALL model) or FCODE (in MEDIUM model).


In C166 if a function is defined as "far", that means that it can be called as a far object. However the Memory Class (NCODE, FCODE etc.) of the function itself depends on the memory model.

Therefore, it is not possible to do what you want (NCODE and FCODE within a single project).

Last Reviewed: Monday, June 7, 2004

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