From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 22:38:18 2010 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 15894106564A for ; Mon, 4 Oct 2010 22:38:18 +0000 (UTC) (envelope-from gull@gull.us) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id A3C0C8FC15 for ; Mon, 4 Oct 2010 22:38:17 +0000 (UTC) Received: by ewy22 with SMTP id 22so2759548ewy.13 for ; Mon, 04 Oct 2010 15:38:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.33.194 with SMTP id i2mr409556ebd.10.1286231896456; Mon, 04 Oct 2010 15:38:16 -0700 (PDT) Received: by 10.14.29.76 with HTTP; Mon, 4 Oct 2010 15:38:16 -0700 (PDT) X-Originating-IP: [69.91.158.98] In-Reply-To: <4CAA3CFE.1060609@emailrob.com> References: <4CAA3030.3090001@emailrob.com> <4CAA3CFE.1060609@emailrob.com> Date: Mon, 4 Oct 2010 15:38:16 -0700 Message-ID: From: David Brodbeck To: spellberg_robert Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: fbsd_questions Subject: Re: [fbsd_questions] i386 vs amd64, on intel_64 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, 04 Oct 2010 22:38:18 -0000 On a 64-bit system, if you build a binary with the -m32 flag, it should run on both i386 and x86-64 systems. A binary built with -m64 will only run on x86-64. Does that help? On Mon, Oct 4, 2010 at 1:45 PM, spellberg_robert wr= ote: > hmmm ..., you did not answer the question that i asked. > > per your statement, on i386, amd64 or both ? > > > > David Brodbeck wrote: >> >> On Mon, Oct 4, 2010 at 12:51 PM, spellberg_robert >> wrote: >> >>> q: =A0 =A0if i install an "amd64" version on an "intel_64" platform, >>> =A0 =A0 =A0 =A0am i restricted to 16 64_bit registers and 48_bit pointe= rs or >>> =A0 =A0 =A0 =A0can i compile for both cpu_models >>> =A0 =A0 =A0 =A0[ perhaps, with nothing more complicated than a compiler= option ] >>> ? >> >> >> Take a look at gcc's -m32 and -m64 options. >> > > >