Usage of near and far

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Usage of near and far

3,022件の閲覧回数
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 返答(返信)

840件の閲覧回数
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 件の賞賛
返信

840件の閲覧回数
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 件の賞賛
返信