Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Aug 18, 2017 7:45 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to check programatically if System is 32/64 bit
PostPosted: Fri Apr 26, 2013 1:42 pm 
Offline

Joined: Fri Sep 30, 2005 10:49 pm
Posts: 504
Hello,
How can I check programatically if System is 32/64 bit (Mac)?
Thanks.
Lennox


Top
 Profile  
Reply with quote  
 Post subject: Re: How to check programatically if System is 32/64 bit
PostPosted: Fri Apr 26, 2013 1:50 pm 
Offline
User avatar

Joined: Sun Oct 28, 2012 4:54 am
Posts: 264
Location: Herts, UK
You just could run a shell command "sysctl hw.cpu64bit_capable" for example

_________________
Real Studio 2012 R2
SysInfo
BackTrack Linux/BackBox Linux/Debian Lenny/Windows 7/Windows 8/OpenWRT/OpenBSD
& Yes it's me in the Avatar


Top
 Profile  
Reply with quote  
 Post subject: Re: How to check programatically if System is 32/64 bit
PostPosted: Wed May 01, 2013 2:19 pm 
Offline
User avatar

Joined: Sat Nov 11, 2006 2:43 pm
Posts: 1221
Location: This poster has left the forums
p0wn3d wrote:
You just could run a shell command "sysctl hw.cpu64bit_capable" for example


I believe that merely tells you if the hardware supports 64 bit. A 32 bit kernel could be running on a 64 bit architecture. The question was a little ambiguous. If by "System" the OP means OS then I'd use "uname", if by "System" they mean hardware I'd use "sysctl". I'm presuming the capitalization of the word "System" means software, and not hardware. Of course, I may be wrong...

uname -v
would show the kernel version, for example on my 10.8.3 machine I'm running Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 , a 32 bit OS would show i386 instead of X86_64

_________________
%Invalidforumsignatureexception% user signature not found


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group