ARM Technical Support Knowledge Articles

MIXING NCODE AND FCODE

Applies to: C166 C Compiler

Answer

QUESTION

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).

ANSWER

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).

Article last edited on: 2004-06-07 09:53:42

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential