From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 21:09:49 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 2068B106566B for ; Thu, 26 Jun 2008 21:09:49 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from ozzie.tundraware.com (ozzie.tundraware.com [75.145.138.73]) by mx1.freebsd.org (Postfix) with ESMTP id B03788FC15 for ; Thu, 26 Jun 2008 21:09:48 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (viper.tundraware.com [192.168.0.2]) (authenticated bits=0) by ozzie.tundraware.com (8.14.2/8.14.2) with ESMTP id m5QL9ePC044279 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Thu, 26 Jun 2008 16:09:40 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <48640594.1010503@tundraware.com> Date: Thu, 26 Jun 2008 16:09:40 -0500 From: Tim Daneliuk Organization: TundraWare Inc. User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Sean Cavanaugh References: <4863F317.6010701@tundraware.com> <4863F4A7.1070909@FreeBSD.org><4863F5A3.6050209@tundraware.com> <4863FC2A.5040909@FreeBSD.org> <4864015C.7010805@tundraware.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-tundraware.com-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m5QL9ePC044279 X-tundraware.com-MailScanner: Found to be clean X-tundraware.com-MailScanner-From: tundra@tundraware.com X-Spam-Status: No 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:09:49 -0000 Sean Cavanaugh wrote: > > > -------------------------------------------------- > From: "Tim Daneliuk" > Sent: Thursday, June 26, 2008 4:51 PM > To: "Kris Kennaway" ; "FreeBSD Mailing List" > > Subject: Re: Making World For amd64 > >> 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? >> >> 2) Can a binary from a 32-bit FreeBSD system be run unmodified on the >> 64-bit system? >> >> 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? >> >> TIA, > > > I take this to mean you have an i386 install and want to compile amd64 > on it. No - although that is an interesting question in its own right. I was more interested in the general question of whether 32-bit and 64-bit binaries are the same or different. I would assume that something has to be compiled to take advantage of 64-bit operations. But this then leads to the two questions: How does makeworld know which way to build the binaries and Can a 32bit binary be run on a 64bit system (or vice versa) in some compatibility or degraded mode... -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/