__near_func
In this section:
Syntax
See Syntax for type attributes used on functions.
Description
The __near_func memory attribute overrides the default storage of functions given by the selected code model and places individual functions in near_func memory. You can also use the __near_func attribute to create a pointer explicitly pointing to an object located in near_func memory.
Storage
Address range:
0–0xFFFF(64 Kbytes)Maximum size: 65535 bytes
Pointer size: 2 bytes
Example
__near_func void myfunction(void);