Re: amd64: why is sizeof(int) =4? why not =8?
On Wednesday 05 April 2006 09:45, Ron Johnson wrote:
> On Wed, 2006-04-05 at 06:48 -0500, Mitchell Laks wrote:
> > Hi,
> >
> > I wanted to find out more about amd64, so I installed the debian distro
Yes, I installed the debian amd64 distro.
(I thought that was clear :) I wanted to find out more about amd64 so I
installed the debian (amd64) distro. Why would I install the i386 one to
find out about amd64? I already have 20 Sarge as well as Sid installs on
386!)
>
> Did you install the 64 bit version?
>
> > (etch/sid) on my amd64 dual core system.
>
> ^^^^^^^^
>
> Which one? Etch or Sid?
I installed using the etch Beta installer disk and immediately upgraded to sid
(Like I usually do for workstations - Hey I like to live dangerously!).
However I notice that system tty on boot up says
Debian Gnu/Linux testing/unstable Rashi tty4
Thats why I wrote that.
Now that you make your comment, why does it say testing/unstable in the
tty1-6 on all my sid machines?
After all, I am running sid. I do have both sid and testing in
the /etc/apt/sources.lst file but I use no pinning, and want unadulterated
sid...
> AMD decided that, to help with compatibility with s/w written when
> sloppy programmers assumed that sizeof(int) == sizeof(*), integers
> will be 32 bits, even in 64 bit mode.
Thank You !!!!!!!!!!!!! Now I see indeed! when i do
int * pointer;
intf("Size of int * is %d\n",sizeof(pointer ));
indeed it does print out 8 !!!
Thanks. You also answered my question on how to program to 64 bit. I just use
int64 ie long long. Thanks!!!
Mitchell
Reply to: