|
| farThe far memory type may be used for variables, constants, and functions. This memory is accessed using 32-bit addresses and may be on-chip or external. - For variables, far memory is limited to 16M, objects are limited to 16K, and objects may not cross a 64K boundary. Variables declared far are located in the FDATA group.
- For constants (ROM variables), far memory is limited to 16M, objects are limited to 16K, and objects may not cross a 64K boundary. Constant variables declared far are located in the FCONST group.
- For program code (functions), far memory is limited to 16M. Program code declared far is stored in the FCODE group. Functions are invoked with the CALLS instruction.
Declare far objects as follows:
unsigned char far far_variable;
unsigned char const far far_const_variable;
unsigned int far far_func (void)
{
return (0);
}
|
|