Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is the cpu 32-bits or 64-bits?

Status
Not open for further replies.

wilsoj2

Programmer
Dec 12, 2003
6
US
Is there a function/variable available which returns the cpu's bit size? (32 or 64 or some other value which indicates the cpu's bit size). I was thinking it would be in the tcl_platform(array) but it wasn't. My c++ is rusty and I thought it would be defined in <climit> or derivable from stuff in <climit> but I'd prefer to use tcl if possible and not make an external call.

I'm on unix operating systems (not windows) and I have a compiled program (test3264) which I don't have the source code for and I don't know the original language it was written in either. This program is only useful for the target operating system it is compiled for...so I would like to replace the test3264 with a program of my own -- in fact I have a linux machine that I am logged into that I need to know whether it is a 32-bit or 64-bit machine.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top