From owner-freebsd-questions@FreeBSD.ORG Mon May 25 10:55:44 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 0E8A81065673 for ; Mon, 25 May 2009 10:55:44 +0000 (UTC) (envelope-from korikov.zk@gmail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 92A228FC1A for ; Mon, 25 May 2009 10:55:42 +0000 (UTC) (envelope-from korikov.zk@gmail.com) Received: by ewy3 with SMTP id 3so3106009ewy.43 for ; Mon, 25 May 2009 03:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=cjzwxguUcnNBEo3Bemufd2yUsaFJZcA1X6aGb7KoOPo=; b=Flws51T/SevEF9sGN8LjD37QG20OyWlxhOKudpNZvdj00YqefVYXwZ7yaz5Cw+9rBr TOuU4uU+WLwMgPsFHTIAa19XRNbja74CD6VNBeYLuwkOKpLDfdXhCNy8DbBYiZYN6mwi DcEhA7zIg6/YM5CzR8VZCRKZkZsm53Cf2StaI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OJ3qIV3cVi05mVyszHXPDbufcxGx5Nmt4E7iuPBy2eK0n0sCQViUipASFJXm/LOA+S CH0RCXRkICyHdgIbSqub/sJtmaDpQEnFws912uKOUpiT7SVcD6e73MOKsAvMCyV4yRHJ 7tkFDavPjyrsREyvIBO/nKTQxcyjHPpbkcRp0= MIME-Version: 1.0 Received: by 10.216.50.69 with SMTP id y47mr1619215web.91.1243248942092; Mon, 25 May 2009 03:55:42 -0700 (PDT) Date: Mon, 25 May 2009 16:25:41 +0530 Message-ID: <717ed9590905250355o3f3b836bm9e2e5abee03d50b2@mail.gmail.com> From: Shakil Khan To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 10:55:44 -0000 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 explain. Thanks in advance.