By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,626 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,626 IT Pros & Developers. It's quick & easy.

32 OS on 64-bit machine

P: n/a
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program

#======================
import platform
print platform.processor()
print platform.architecture()
#======================

Thanks in advance
: )~

May 3 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
SamG wrote:
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program

#======================
import platform
print platform.processor()
print platform.architecture()
#======================

Thanks in advance
: )~
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>import platform
print platform.processor ()
>>print platform.architecture ()
('32bit', 'WindowsPE')
>>>
May 3 '07 #2

P: n/a
On May 3, 2:58 pm, Harald Karner <harald.kar...@a1.netwrote:
SamG wrote:
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program
#======================
import platform
print platform.processor()
print platform.architecture()
#======================
Thanks in advance
: )~

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>import platform
>>print platform.processor ()
>>print platform.architecture ()
('32bit', 'WindowsPE')
>>>
Thanks, I would be more interested in the output on Linux's or Unix

Thanks again : )~

May 3 '07 #3

P: n/a
I have at home an AMD Turion 64 and using Ubuntu. You may be
interested on this, i will post here the results when i get back home!

May 3 '07 #4

P: n/a
SamG ha scritto:
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program
I have a Athlon64 X2 with Debian unstable i386:
[mg@Galvatron pts/0 ~]$ python
Python 2.4.4 (#2, Apr 26 2007, 00:02:45)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>import platform
print platform.processor()
>>print platform.architecture()
('32bit', '')
>>>
I also have a MacBook with a Core 2 Duo and Mac OS X 10.4.9 :

[MG55@dot1x-056 ttyp4 ~/Desktop/ETICS]$ python
Python 2.3.5 (#1, Aug 19 2006, 21:31:42)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>import platform
print platform.processor()
i386
>>print platform.architecture()
('32bit', '')
>>>
--
Mattia Gentilini
Collaborator for ETICS project - http://eu-etics.org/
INFN - CNAF - R&D Division - Bologna, Italy
* Using Mac OS X 10.4.9 powered by Cerebros (Core 2 Duo) *
May 3 '07 #5

P: n/a

$ python
Python 2.5c1 (r25c1:51305, Sep 12 2006, 08:39:50)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>import platform
print platform.processor()
x86_64
>>print platform.architecture()
('64bit', 'ELF')
>>>
This is an Opteron box running 64-bit RedHat Enterprise Lunix release
3 update 7, not 32-bit.

$ uname -a
Linux localhost.localdomain 2.4.21-40.EL #1 Thu Feb 2 22:20:41 EST
2006 x86_64 x86_64 x86_64 GNU/Linux

/Jean Brouwers

On May 3, 2:10 am, SamG <mad.vi...@gmail.comwrote:
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program

#======================
import platform
print platform.processor()
print platform.architecture()
#======================

Thanks in advance
: )~
May 3 '07 #6

P: n/a
At Amd Turion 64, it gives:

('32bit', 'ELF')

May 3 '07 #7

P: n/a
On Thursday 03 May 2007 01:10, SamG wrote:
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program

#======================
import platform
print platform.processor()
print platform.architecture()
#======================

Thanks in advance
: )~
>>import platform
print platform.processor()
>>print platform.architecture()
('32bit', '')
>>>
$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 44
model name : AMD Sempron(tm) Processor 3100+
<SNIP>

$ uname -a
Linux djibouti 2.6.15-28-k7 #1 SMP PREEMPT Thu Feb 1 16:36:09 UTC 2007 i686
GNU/Linux

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ *ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com

May 4 '07 #8

P: n/a
"SamG" <ma*******@gmail.comwrote:
If anyone has a x86_64 machine and is running a 32bit OS on top of
that.... could you tell me what output would you get for the following
program

#======================
import platform
print platform.processor()
print platform.architecture()
#======================
not copy pasted - the new machine is not on the network yet
the answers look like:
i686
and
('32bit','')

Suse 10 gave me a warning during installation last night...
the machine is an HP Compaq Celeron D

- Hendrik

May 4 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.