[fbsd_questions] i386 vs amd64, on intel_64
David Brodbeck
gull at gull.us
Mon Oct 4 22:38:18 UTC 2010
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 at emailrob.com> wrote:
> 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 at emailrob.com>
>> wrote:
>>
>>> q: if i install an "amd64" version on an "intel_64" platform,
>>> am i restricted to 16 64_bit registers and 48_bit pointers or
>>> can i compile for both cpu_models
>>> [ perhaps, with nothing more complicated than a compiler option ]
>>> ?
>>
>>
>> Take a look at gcc's -m32 and -m64 options.
>>
>
>
>
More information about the freebsd-questions
mailing list