Date: Mon, 25 May 2009 13:09:52 +0200 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: why integer size says 4 bytes on 64 bit processor Message-ID: <gvdu9q$obo$1@ger.gmane.org> In-Reply-To: <717ed9590905250355o3f3b836bm9e2e5abee03d50b2@mail.gmail.com> References: <717ed9590905250355o3f3b836bm9e2e5abee03d50b2@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Shakil Khan wrote: > Hi All, > > Pardon me if I am writing this mail to the wrong group as I am too new to > BSD and programming stuff. You can redirect me to right group without > howling. By seeing some recent conversations(About the top status ;)) in > this group it made me nervous to ask for a silly question like this, but it > intrigued my mind too much so thought to delve into it keeping aside my > fear. > > I have a 64bit intel processor, Dual core machine and I have installed 64 > bit Linux as well as FreeBSD and thought of seeing the size of integer. On > both the platform my integer is showing 4 bytes which is 32 bit. I thought > integer are the most basic of the data types and governs the architecture as > 32 bit or 64 bit, so why integer shows me 4bytes instead of 8. Does this > means that even on 64 bit architecture we are limited to just 4GB of RAM. Please read http://en.wikipedia.org/wiki/64-bit#Specific_data_models FreeBSD and Linux use the LP64 model. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoafIAACgkQldnAQVacBcgVKgCgtB9a2VrdgBBXC0f4Z1J+4NLQ wNUAnRMCW/A9Kv+gZ2+Z0SWx7mRo9gq9 =aHnr -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gvdu9q$obo$1>
