From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <2534182.PHoCBPpqvs@coil> References: <1663922.YALRc7vFOO@coil> <2534182.PHoCBPpqvs@coil> Date: Tue, 8 May 2012 15:04:44 -0400 Message-ID: From: Comeau At9Fans To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=e89a8fb1edec4284e204bf8b0f3f Subject: Re: [9fans] integer width on AMD64 (was: Re: AMD64 system) Topicbox-Message-UUID: 85b9e852-ead7-11e9-9d60-3106f5b1d025 --e89a8fb1edec4284e204bf8b0f3f Content-Type: text/plain; charset=ISO-8859-1 On Mon, May 7, 2012 at 6:36 AM, dexen deVries wrote: > On Monday 07 of May 2012 11:27:29 Charles Forsyth wrote: > > The MIPS, PowerPC and SPARC all grew to 64 bits from 32 bits, so 32 bit > > quantities > > (and usually but not always 16 bit and 8 bit quantities) have suitable > > instructions to fetch them. > > fwiw, back in my uni days we were using some old 64bit Solaris on Sun's > UltraSparcs, and those had sizeof(int) == 8. i remember distinctly how my > lame > programs (developed on x86 and assuming sizeof(int) == 4) tripped on it. > > can't recall exact versions, but the CPUs were somewhere around 400MHz or > so, > and GCC was the compiler of choice. I may be recalling this incorrectly, but I think you're right about the 8, but didn't they also eventually bring it to 4 as well (or maybe I'm thinking of Sun C)? -- Greg Comeau / 4.3.10.1 with C++0xisms now in beta! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it? --e89a8fb1edec4284e204bf8b0f3f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, May 7, 2012 at 6:36 AM, dexen deVries <dexen.devries@gmail.c= om> wrote:
On Monday 07 of May 2012 11:27:29 Charles Forsyth wrote:<= br> > The MIPS, PowerPC and SPARC all grew to 64 bits from 32 bits, so 32 bi= t
> quantities
> (and usually but not always 16 bit and 8 bit quantities) have suitable=
> instructions to fetch them.

fwiw, back in my uni days we were using some old 64bit Solaris on Sun= 's
UltraSparcs, and those had sizeof(int) =3D=3D 8. i remember distinctly how = my lame
programs (developed on x86 and assuming sizeof(int) =3D=3D 4) tripped on it= .

can't recall exact versions, but the CPUs were somewhere around 400MHz = or so,
and GCC was the compiler of choice.

I may b= e recalling this incorrectly, but I think you're right about the 8, but= didn't they also eventually bring it to 4 as well (or maybe I'm th= inking of Sun C)?
=A0
--
Greg Comeau / 4.3.10.1 with C++0xisms now i= n beta!
Comeau C/C++ ONLINE =3D=3D> =A0 =A0 http://www.comeaucomput= ing.com/tryitout
World Class Compilers: =A0Breathtaking C++, Amazing C99, Fabulous C90.=
Comeau C/C++ with Dinkumware's Libraries... Have you tried i= t?

--e89a8fb1edec4284e204bf8b0f3f--