From owner-freebsd-questions@FreeBSD.ORG Mon May 25 11:10:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D22ED106564A for ; Mon, 25 May 2009 11:10:03 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5B9438FC12 for ; Mon, 25 May 2009 11:10:03 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M8Y45-0000E7-9p for freebsd-questions@freebsd.org; Mon, 25 May 2009 11:09:57 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 May 2009 11:09:57 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 May 2009 11:09:57 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Mon, 25 May 2009 13:09:52 +0200 Lines: 52 Message-ID: References: <717ed9590905250355o3f3b836bm9e2e5abee03d50b2@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEE936056BAC8F85DB4670547" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090409) In-Reply-To: <717ed9590905250355o3f3b836bm9e2e5abee03d50b2@mail.gmail.com> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: why integer size says 4 bytes on 64 bit processor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 11:10:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEE936056BAC8F85DB4670547 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Shakil Khan wrote: > Hi All, >=20 > 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 ;)) i= n > this group it made me nervous to ask for a silly question like this, bu= t it > intrigued my mind too much so thought to delve into it keeping aside my= > fear. >=20 > 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 thou= ght > integer are the most basic of the data types and governs the architectu= re as > 32 bit or 64 bit, so why integer shows me 4bytes instead of 8. Does thi= s > means that even on 64 bit architecture we are limited to just 4GB of RA= M. Please read http://en.wikipedia.org/wiki/64-bit#Specific_data_models FreeBSD and Linux use the LP64 model. --------------enigEE936056BAC8F85DB4670547 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --------------enigEE936056BAC8F85DB4670547--