On Thu, 2008-05-01 at 08:16 +0100, Barak A. Pearlmutter wrote:
> Do you happen to know if the same -m32 switch can be used on all
> 64-bit architectures: not just AMD64 but also ALPHA, SPARC, etc.?

Hmm no, I wouldn't know, really. Does Alpha have a 32 bit mode anyway ?
I know sparc does.

Let's see .. what 64 bit archs do we have:

** ALPHA

Linux escher 2.6.18-6-alpha-smp #1 SMP Mon Feb 11 10:15:54 UTC 2008
alpha

[EMAIL PROTECTED]:~$ vi hello.c
[EMAIL PROTECTED]:~$ cc -Wall -o hello64 hello.c
[EMAIL PROTECTED]:~$ cc -Wall -m32 -o hello32 hello.c
cc1: error: unrecognized command line option "-m32"

** HPPA

Can't test it, no public developer machine available.

** SPARC

Can't test it, no public developer machine available. However this
appears to be a 32 bit distribution with extra 64 bit support. I think
packages are built in 32 bit mode by default ?

** IA64

[EMAIL PROTECTED]:~$ cc -Wall -o hello64 hello.c
[EMAIL PROTECTED]:~$ cc -Wall -m32 -o hello32 hello.c
cc1: error: unrecognized command line option "-m32"

** AMD64

We know this works.


As far as I can check, only amd64 has support for compiling and running
32-bit programs on a 64-bit platform.

Mike.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to