|
|
|
|
 _CODE_ACCESS是什么意思 - jianhan [ 2005-07-26 12:20 | 59 byte(s)]
 Re: _CODE_ACCESS是什么意思 - tclwp [ 2005-07-26 15:58 | 1,176 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
见
http://www.tij.co.jp/jsc/docs/dsps/support/download/tools/toolspdf6000/spru187i.pdf
中的介绍:
Function Calls as near or far (linkage.h)
The linkage.h header declares two macros. Depending on the value of the
_FAR_RTS macro,
the _CODE_ACCESS macro is set to force calls to runtime-
support functions to be either user default, near or far. The _FAR_RTS
macro is set according to the use of the –mr shell option.
The _DATA_ACCESS macro is set to always be far. The _IDECL macro determines
how inline functions are declared.
All header files that define functions or data declare #include <linkage.h>.
Functions are modified with _CODE_ACCESS, for example:
extern _CODE_ACCESS void exit(int _status);
Data is modified with _DATA_ACCESS, for example:
extern _DATA_ACCESS unsigned char _ctypes_[];
是给专用编译器作优化的吧
|
|
|
[Original]
[Print]
[Top]
|
|
|