Re: Sizeof long and int for 64 bit OS
From: Rick Jones (rick.jones2_at_hp.com)
Date: 05/20/05
- Previous message: Eric Sosman: "Re: Sizeof long and int for 64 bit OS"
- In reply to: Victor Wagner: "Re: Sizeof long and int for 64 bit OS"
- Next in thread: Bjorn Reese: "Re: Sizeof long and int for 64 bit OS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 May 2005 16:45:04 GMT
In comp.protocols.tcp-ip Victor Wagner <vitus@45.free.net> wrote:
> I've collected expermimental data of sizeof for variuous types on
> various platforms on the http://www.45.free.net/~vitus/intsize.html
> There are four 64-bit platforms in the table: FreeBSD on
> AMD/Opteron, Solaris on Sparc64, HP/UX on Itanium 64 and HP/UX on
> PA-RISC 64.
Since I cannot resist a nit:
$ uname -s
HP-UX
> On all these platforms size of POINTER is 64 bit, and Long is 64 bit
> also. But int is still 32 bit for compatibility with most applications.
Those would all be considered "LP64" (L == Long, P == pointer)
> As far as I know, 64-bit Windows (on AMD, Intel E64T, Itanium) goes
> even further - they keep long 32bit and only long long (or int64_t)
> and pointers are 64 bit. Although I've done no experiments.
I've run into that with netperf. Indeed, "64-bit" Windows is a "P64"
programming model - Pointers are 64 bits.
rick jones
--
denial, anger, bargaining, depression, acceptance, rebirth...
where do you want to be today?
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
- Previous message: Eric Sosman: "Re: Sizeof long and int for 64 bit OS"
- In reply to: Victor Wagner: "Re: Sizeof long and int for 64 bit OS"
- Next in thread: Bjorn Reese: "Re: Sizeof long and int for 64 bit OS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]