Chapter 6. Extensions to the C Language Family
int foo __attribute__ ((vector_size (16)));
causes the compiler to set the mode for
ing a 32-bit int (a vector of 4 units of 4 bytes), the corresponding mode of
This attribute is only applicable to integral and float scalars, although arrays, pointers, and func-
tion return values are allowed in conjunction with this construct.
Aggregates with this attribute are invalid, even if they are of the same size as a corresponding
scalar. For example, the declaration:
struct S { int a; };
struct S
__attribute__ ((vector_size (16))) foo;
is invalid even if the size of the structure is the same as the size of the
weak
The
attribute is described in Section 6.25 Declaring Attributes of Functions.
weak
dllimport
The
dllimport
dlexport
The
dllexport
6.32.1. M32R/D Variable Attributes
One attribute is currently defined for the M32R/D.
model (
model-name
Use this attribute on the M32R/D to set the addressability of an object. The identifier
is one of
model-name
Small model objects live in the lower 16MB of memory (so that their addresses can be loaded
with the
instruction).
ld24
Medium and large model objects may live anywhere in the 32-bit address space (the compiler
will generate
seth/add3
6.32.2. i386 Variable Attributes
Two attributes are currently defined for i386 configurations:
ms_struct
gcc_struct
If
is used on a structure, or if bit-fields are used it may be that the Microsoft ABI packs
packed
them differently than GCC would normally pack them. Particularly when moving packed data
between functions compiled with GCC and the native Microsoft compiler (either via function
call or as data in a file), it may be necessary to access either format.
Currently
-m[no-]ms-bitfields
match the native Microsoft compiler.
attribute is described in Section 6.25 Declaring Attributes of Functions.
attribute is described in Section 6.25 Declaring Attributes of Functions.
)
,
small
medium
instructions to load their addresses).
is provided for the Microsoft Windows X86 compilers to
, to be 16 bytes, divided into
foo
, or
, representing each of the code models.
large
ms_struct
sized units. Assum-
int
will be V4SI.
foo
.
int
and
gcc_struct
167
Need help?
Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?