SPRUI04G June 2015 – August 2025
Function calls can be invoked in one of two ways:
| __near keyword | The compiler assumes that destination of the call is within ± 1 M word of the caller. Here the compiler uses the PC-relative branch instruction.
|
| __far keyword | The compiler is told by you that the call is not within ± 1 M word.
|
By default, the compiler generates small-memory model code, which means every function call is handled as if it were declared near, unless it is actually declared far. For more information on function calls, see Section 8.1.5.