Usage of near and far

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Usage of near and far

3,023 次查看
sparcz
Contributor I
Hi, I am new to the banked code model, and I feel that there are no clear rules to when to use the "near" and "far" declarations. Is there any good literature on this topic or do you have any good ideas regarding this.

It would also be nice to know what impact the declarations have on the code and what impact the absence of the declaration have.

Would be very happy for any input on this.

Best regards / Sparcz
标签 (1)
0 项奖励
回复
2 回复数

841 次查看
Technoman64
Contributor III
I recieved a pdf file on this subject from the technical staff of Metrowerks. This was when I was beta testing the new Codewarrior for the HCS(X)12 MCU.
 
Document was named TN238.pdf
 
This covers when, why, and how to use the paging with Codewarrior directives.
 
If this iu what you are looking for give me an email addy to send file to and I will. It is only 70kb.
 
You may be able to search for the file name and get a direct link to dl also.
 
 
 
0 项奖励
回复

841 次查看
CrasyCat
Specialist III
Hello
 
First of all near and far are not standard ANSI C keywords. So each software vendor might handle that differently. The way these keywords are supported also depends on the target processor you are using and the memory model you are using.
I would recommend you to check your software vendor documentation for information on how this is implemented in your case.
 
I hope this helps.
 
CrasyCat
0 项奖励
回复