2.6.6
Relationship with near and far
The near/far attribute of data and functions is determined by options and keywords.
The following shows how to determine the near/far attribute.
|
|
|
|
|
-cpu
|
This option determines the default near/far attribute.
|
|
|
-memory_model
|
This option overwrites the default near/far attribute determined by (a).
|
|
|
-far_rom
|
Only for ROM data, this option overwrites the near/far attribute determined by (b) with the far attribute.
|
|
|
__near/__far
|
These settings are not affected by (a) to (c); the __near and _far specifications are valid.
|
|
For (b) and (c) in the above table (-memory_model and -far_rom options), the following shows the near/far attribute determined for ROM data and RAM data when only the former option is specified and when both options are specified.