Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2006 10:26:18 -0700
From:      John-Mark Gurney <gurney_j@resnet.uoregon.edu>
To:        Astrodog <astrodog@gmail.com>
Cc:        patrick <patrick@barmentlo.nl>, freebsd-amd64@freebsd.org
Subject:   Re: extreme mem usage under amd64 arch ?
Message-ID:  <20060407172618.GC72485@funkthat.com>
In-Reply-To: <2fd864e0604070628m64ecf142gb7dc314721510835@mail.gmail.com>
References:  <20060407075301.I21526@gandalf.cyberwizards.nl> <443613D0.80801@rtl.fmailbox.com> <20060407101400.R28178@gandalf.cyberwizards.nl> <4436253F.9080000@rtl.fmailbox.com> <2fd864e0604070628m64ecf142gb7dc314721510835@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Astrodog wrote this message on Fri, Apr 07, 2006 at 21:28 +0800:
> and pointer, you use 4 Bytes. On a 64-bit processor, all ints, and
> pointers take up 64-bits of memory. So, for every int and pointer, you
> use 8 bytes. (Assuming its a 64-bit app, of course) That means

Not quite...  FreeBSD/amd64 like all? the other arches are LP64...
that means longs and pointers are 64bits, while ints remain at 32bits...
This was primarily done because too many people assumed ints were
32bits for things like disk structures and network protocol layout,
and to break less code, LP64 was decided upon...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060407172618.GC72485>