Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] Can a native 64-bit CPU run 32-bit code ?
  • From: David Bottrill <david@xxxxxxxxxxxx>
  • Date: Sat, 15 Apr 2006 23:38:22 +0100
  • Message-id: <200604152338.22267.david@xxxxxxxxxxxx>
On Saturday 15 April 2006 23:12, Maura Edeweiss Monville wrote:
> My laptop has a AMD Athlon 64 Processor 3700+, Architecture is x86_64.
> My problem is that I have to compile a code that will then be linked to
> pre-compile binaries produced on 32-bit machines.
> In short, everything must be compiled to generate 32-bit code for the sake
> of compatibility.
> There should be an option in the gcc compiler that forces it to generate
> 32-bit code..
> But assuming I've got an executable for 32-bit machines, then can I run
> such an exectable on MY OWN laptop which is 64-bit ?
> If the answer is "yes" (I hope so) then I'd be grateful to know how I can
> do that .

Providing you have any 32bit libraries you need installed then you can just
prefix your program name with linux32

for instance you can run bash in 32 bit by typing

linux32 bash

David

--
David Bottrill

david@xxxxxxxxxxxx
www.bottrill.org
Registered Linux user number 330730
Internet Free World Dialup: 683864

< Previous Next >