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

How can I find out the word size of my processor?

P: 1
I want to find the word size of my processor. I tried using sizeof(void*) but it gives me 32 as the size. I have a 64 bit processor and a 32 bit GNU C compiler.
Oct 13 '10 #1
Share this Question
Share on Google+
1 Reply


ashitpro
Expert 100+
P: 542
word size of processor is not directly available to applications. Intel processor does supports some assembly instructions. you can use it.

http://cboard.cprogramming.com/c-pro...-size-cpu.html
Oct 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.