From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 21:19:19 2008 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 D4AF61065672 for ; Thu, 26 Jun 2008 21:19:19 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4A4538FC1D for ; Thu, 26 Jun 2008 21:19:19 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:57507 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KBysA-0000cz-7K for freebsd-questions@FreeBSD.org; Thu, 26 Jun 2008 23:19:18 +0200 Received: (qmail 22611 invoked from network); 26 Jun 2008 23:19:15 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 26 Jun 2008 23:19:15 +0200 Received: (qmail 65620 invoked by uid 1001); 26 Jun 2008 23:19:15 +0200 Date: Thu, 26 Jun 2008 23:19:15 +0200 From: Erik Trulsson To: Tim Daneliuk Message-ID: <20080626211915.GA65600@owl.midgard.homeip.net> References: <4863F317.6010701@tundraware.com> <4863F4A7.1070909@FreeBSD.org> <4863F5A3.6050209@tundraware.com> <4863FC2A.5040909@FreeBSD.org> <4864015C.7010805@tundraware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4864015C.7010805@tundraware.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1KBysA-0000cz-7K. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KBysA-0000cz-7K f67d7497295a817d96e7c880f0efbc0d Cc: Kris Kennaway , FreeBSD Mailing List Subject: Re: Making World For amd64 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: Thu, 26 Jun 2008 21:19:19 -0000 On Thu, Jun 26, 2008 at 03:51:40PM -0500, Tim Daneliuk wrote: > Kris Kennaway wrote: > > Tim Daneliuk wrote: > >> Kris Kennaway wrote: > >>> Tim Daneliuk wrote: > >>>> Is there anything special one has to do when doing a make world > >>>> intended for 64-bit FreeBSD or is it sufficient to build the 64-bit > >>>> kernel and make world as everywhere else? > >>> The same as everywhere else. > >>> > >>> Kris > >> > >> So, I take it that this means that all the userspace programs, ports, > >> packages, utilities, etc. do *not* take advantage of the 64-bit > >> extensions. That is, only the kernel gets the benefit of the > >> wider word. Is that correct? > >> > > > > No, everything is 100% native. > > > > Kris > > > > OK, these may be really stupid questions but: > > 1) How does make world know whether to build 32-bit or 64-bit binaries? It will build for whatever system you have installed. If you are running a 32-bit system it will make 32-bit binaries, and if you are running a 64-bit system it will make 64-bit binaries. > > 2) Can a binary from a 32-bit FreeBSD system be run unmodified on the > 64-bit system? Assuming the 32-bit system is 'i386' and the 64-bit system is 'amd64' then you are supposed to be able to do so (but I don't know how well it works in practice). Otherwise no. (Running a i386 binary on a sparc64 system won't work.) > > 3) If I reboot with 32-bit or 64-bit kernels, does the system magically > somehow make the userland stuff work natively at the word width? > If so, how? If you have installed the amd64 variant of FreeBSD (for example) then all binaries (userland and kernel alike) will have been compiled for the amd64 architecture (and thus 64-bit.) If you are running the i386 variant then all binaries will have been compiled for i386 (and thus 32-bit.) -- Erik Trulsson ertr1013@student.uu.se