Red Hat ENTERPRISE LINUX 4 Manual page 166

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

158
On IA-64, use this attribute to set the addressability of an object. At present, the only supported
identifier for
model-name
that their addresses can be loaded with the
definition not position independent and hence this attribute must not be used for objects defined
by shared libraries.
far
On 68HC11 and 68HC12 the
takes care of switching memory banks when entering and leaving a function. This calling con-
vention is also the default when using the
On 68HC12 the compiler will use the
tion.
On 68HC11 the compiler will generate a sequence of instructions to invoke a board-specific
routine to switch the memory bank and call the real function. The board-specific routine simulates
a
. At the end of a function, it will jump to a board-specific routine instead of using
call
The board-specific return routine simulates the
near
On 68HC11 and 68HC12 the
convention based on
-mlong-calls
dllimport
On Microsoft Windows targets, the
tion or variable via a global pointer to a pointer that is set up by the Microsoft Windows dll li-
brary. The pointer name is formed by combining
attribute implies
Currently, the attribute is ignored for inlined functions. If the attribute is applied to a symbol
definition, an error is reported. If a symbol previously declared
the attribute is ignored in subsequent references, and a warning is emitted. The attribute is also
overridden by a subsequent declaration as
When applied to C++ classes, the attribute marks non-inlined member functions and static data
members as imports. However, the attribute is ignored for virtual methods to allow creation of
vtables using thunks.
On cygwin, mingw and arm-pe targets,
for
__attribute__ ((dllimport))
pilers.
The use of the
dllimport
mance benefit by eliminating a thunk in the dll. The use of the
variables was required on older versions of GNU ld, but can now be avoided by passing the
-enable-auto-import
inates a thunk in the dll.
One drawback to using this attribute is that a pointer to a function or variable marked as dllimport
cannot be used as a constant address. The attribute can be disabled for functions by setting the
-mnop-fun-dllimport
dllexport
On Microsoft Windows targets the
pointer to a pointer in a dll, so that it can be referenced with the
name is formed by combining
is
, indicating addressability via "small" (22-bit) addresses (so
small
attribute causes the compiler to use a calling convention that
far
near
and
. This attribute can be used to cancel the effect of the
jsr
rts
option.
dllimport
storage.
extern
attribute on functions is not necessary, but provides a small perfor-
switch to ld. As with functions, using the attribute for a variable elim-
flag.
dllexport
_imp__
Chapter 6. Extensions to the C Language Family
instruction). Caveat: such addressing is by
addl
option.
-mlong-calls
and
instructions to call and return from a func-
call
rtc
.
rtc
attribute causes the compiler to use the normal calling
attribute causes the compiler to reference a func-
and the function or variable name. The
_imp__
.
dllexport
__declspec(dllimport)
for compatibility with other Microsoft Windows com-
attribute causes the compiler to provide a global
and the function or variable name.
is later defined,
dllimport
is recognized as a synonym
attribute on imported
dllimport
attribute. The pointer
dllimport
.
rts

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?

Table of Contents