
Unlike the elements of an array, the members of a structure can have different data types and sizes.Īn object that holds any one of a set of named members. All elements within an array have the same size and data type.Ĭontains an ordered group of data objects. Here are the definitions for array, structure, and union:Ĭontains an ordered group of adjacent data objects. Other types, such as arrays, structs, and unions, have stricter alignment requirements that ensure consistent aggregate and union storage and data retrieval. The following table describes the type definition and recommended storage for data as it pertains to alignment using the following alignment values: Enums are constant integers and are treated as 32-bit integers. Scalar typesĪlthough it's possible to access data with any alignment, align data on its natural boundary, or a multiple of its natural boundary, to avoid performance loss.


This section describes the storage of data types for the 圆4 architecture. /favor (Optimize for Architecture Specifics).The following compiler option helps you optimize your application for 圆4: For details on the 圆4 calling convention, including register usage, stack parameters, return values, and stack unwinding, see 圆4 calling convention. The _fastcall convention uses registers for the first four arguments, and the stack frame to pass more arguments. Given the expanded register set, 圆4 uses the _fastcall calling convention and a RISC-based exception-handling model. Sixteen 64-bit registers for general use.Two important differences between x86 and 圆4 are:

It covers topics such as the calling convention, type layout, stack and register usage, and more. This topic describes the basic application binary interface (ABI) for 圆4, the 64-bit extension to the x86 architecture.
