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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rishabh Gupta
    New Member
    • Oct 2010
    • 1

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

    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.
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    word size of processor is not directly available to applications. Intel processor does supports some assembly instructions. you can use it.

    Comment

    Working...