Date: Mon, 4 Oct 2010 15:38:16 -0700 From: David Brodbeck <gull@gull.us> To: spellberg_robert <emailrob@emailrob.com> Cc: fbsd_questions <freebsd-questions@freebsd.org> Subject: Re: [fbsd_questions] i386 vs amd64, on intel_64 Message-ID: <AANLkTi=e8cBqd6Z=zxOxpMZm_RD=-RODupzprK843=qF@mail.gmail.com> In-Reply-To: <4CAA3CFE.1060609@emailrob.com> References: <4CAA3030.3090001@emailrob.com> <AANLkTintm_XubwCCRNJci99Y4M6nwbFr=oiKqBw2%2Ba9M@mail.gmail.com> <4CAA3CFE.1060609@emailrob.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <emailrob@emailrob.com> 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 <emailrob@emailrob.com= > >> 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. >> > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=e8cBqd6Z=zxOxpMZm_RD=-RODupzprK843=qF>