This notifies the compiler of a callt function.
A function specified with #pragma callt is called by the callt instruction. |
The callt function is called by the callt instruction using a label name with "@_" added to the beginning of the function name. |
#pragma callt handles even a variable to which the __far keyword is added as if __near was specified without a warning being output. |
When #pragma callt, #pragma near, or #pragma far was specified together for the same function, the #pragma directives become valid in the priority order of #pragma callt > #pragma near > #pragma far. |
The size of the object code becomes smaller because the function is called by a 2-byte call instruction. |
If there are multiple declarations for the same variable and #pragma callt is written at the location where the second or subsequent declaration takes effect, correct operation is not guaranteed. #pragma callt should be written before the declaration. |
If a #pragma directive other than #pragma near or #pragma far is specified for the same function, a compilation error will occur. |
If __inline and __callt are specified in the declaration of a target function of this #pragma directive, a compilation error will occur. |
The __callt keyword cannot be used together with the __far keyword, and a compilation error will occur if used so. |
#pragma callt handles even a function to which the __far keyword is added as if __callt was specified without a warning being output. |