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


that is a relevant piece of information! Thanks a lot.
Based on what you've said gcc doesn't care if Linux is 32 or 64 bit (i.e.:
using ILP32 or LP64) as it just refers to the psABI. Is this correct? Do
you guys have more info on this? white paper, post, code to look, etc ?

thanks in advance.
Ono

On 5 October 2017 at 23:28, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:

> 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.
>



-- 
Onorato Vaticone
m : +393 85 2152462
email : onorato.vaticone@gmail.com
web : www.onoratovaticone.it


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