From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 21:53:04 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 BCDE4106567C for ; Thu, 26 Jun 2008 21:53:04 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EE82F8FC25; Thu, 26 Jun 2008 21:53:03 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48640FBF.4010006@FreeBSD.org> Date: Thu, 26 Jun 2008 23:53:03 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Tim Daneliuk References: <4863F317.6010701@tundraware.com> <4863F4A7.1070909@FreeBSD.org> <4863F5A3.6050209@tundraware.com> <4863FC2A.5040909@FreeBSD.org> <4864015C.7010805@tundraware.com> <48640A12.3000108@FreeBSD.org> <48640AB9.9000303@tundraware.com> <48640B60.9060907@tundraware.com> In-Reply-To: <48640B60.9060907@tundraware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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:53:04 -0000 Tim Daneliuk wrote: > Tim Daneliuk wrote: >> Kris Kennaway wrote: >>> 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 always uses the native format. amd64 == 64 bit, i386 == 32 bit >> Don't mean to beat this to death, but can you say just a bit more >> about this please. If I am running an i386 kernel on 64-bit capable >> processor, I assume I will get 32-bit binaries or not? IOW, what >> triggers makeworld to do something in 32- vs. 64-bit mode? The >> *kernel* currently executing or the underlying hardware capability? >> >> > > Let me be even more specific: If I install 32-bin x86 FreeBSD on, say, > a Pentium D machine that is 64-bit capable, when I makeworld, will this > result in 32- or 64-bit binaries? Ditto if I do makekernel. > 32