- 论坛徽章:
- 2
|
"internal"
Internal visibility is like hidden visibility, but with
additional processor specific semantics. Unless otherwise
specified by the psABI, GCC defines internal visibility to
mean that a function is _never_ called from another module.
Compare this with hidden functions which, while they cannot
be referenced directly by other modules, can be referenced
indirectly via function pointers. By indicating that a
function cannot be called from outside the module, GCC may
for instance omit the load of a PIC register since it is known
that the calling function loaded the correct value.
似乎是遇见了 __attribute__(__visibility__("internal")) 与 "hidden" 行为不同的cpu了…… |
|