Enum target_lexicon::CDataModel [−][src]
#[non_exhaustive] pub enum CDataModel { LP32, ILP32, LLP64, LP64, ILP64, }
Expand description
The C data model used on a target.
See also https://en.cppreference.com/w/c/language/arithmetic_types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The data model used most commonly on Win16. long
and pointer
are 32 bits.
The data model used most commonly on Win32 and 32-bit Unix systems.
int
, long
, and pointer
are all 32 bits.
The data model used most commonly on Win64
long long
, and pointer
are 64 bits.
The data model used most commonly on 64-bit Unix systems
long
, and pointer
are 64 bits.
A rare data model used on early 64-bit Unix systems
int
, long
, and pointer
are all 64 bits.
Implementations
The width of a pointer (in the default address space).
The size of a C short
. This is required to be at least 16 bits.
The size of a C long long
. This is required (in C99+) to be at least 64 bits.
The size of a C float
.
The size of a C double
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CDataModel
impl Send for CDataModel
impl Sync for CDataModel
impl Unpin for CDataModel
impl UnwindSafe for CDataModel
Blanket Implementations
Mutably borrows from an owned value. Read more