This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: primitive type size


On 5 October 2017 at 22:31, Onorato Vaticone wrote:
> Hi all,
>
> I have a question I hope you can help to clarify.
>
> Context: I know Unix/*Linux uses the data model LP64.
> http://www.unix.org/version2/whatsnew/lp64_wp.html

For 64-bit, yes, but ILP32 for 32-bit.

> I'd like to know if gcc uses the data model information of the underlying
> OS to decide the size of the primitive type since the C++ standard does not
> dictate any size.

The type sizes used by the OS are dictated by the psABI document for
the processor. GCC follows the relevant psABI for the target.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]