All of lore.kernel.org
 help / color / mirror / Atom feed
* How to identity processor architecture
@ 2011-01-27  6:07 prabhu
  2011-01-27  6:26 ` Enrico Granata
  0 siblings, 1 reply; 24+ messages in thread
From: prabhu @ 2011-01-27  6:07 UTC (permalink / raw)
  To: kernelnewbies

Hi Dear,

I just wanna to know my processor architecture(32bit or 64 bit) through 
c programming.

According to me the sizeof of pointer will give the result. Like below 
coding.

int main()
{
    int *ptr;
    printf("%d",sizeof(ptr));
}

Please correct me if i am wrong...

Any suggestion or help would be appreciated.

Thanks,
Prabhu

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-01-30 13:23 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27  6:07 How to identity processor architecture prabhu
2011-01-27  6:26 ` Enrico Granata
2011-01-27  6:31   ` arun kumar
2011-01-27  6:40   ` prabhu
2011-01-27  6:45     ` Mulyadi Santosa
2011-01-27  6:54       ` Enrico Granata
2011-01-27  7:15         ` dharmvir kumar
2011-01-27  7:24         ` Mandeep Sandhu
2011-01-27  8:20           ` prabhu
2011-01-27  8:22             ` Enrico Granata
2011-01-27  9:53               ` prabhu
2011-01-27 11:15                 ` Henry Gebhardt
2011-01-27 11:32                   ` Thirugnanam Balamurugan
2011-01-27 11:44                   ` Pravin Shedage
2011-01-27 12:33                     ` prabhu
2011-01-27  9:23           ` Busybox for powerpc doesnt compile Giriprasad Deviprasad
2011-01-27 10:11             ` yy Hong
2011-01-27 13:47               ` Anuz Pratap Singh Tomar
2011-01-29  5:50               ` Giriprasad Deviprasad
2011-01-30 13:23               ` Giriprasad Deviprasad
2011-01-27  7:07       ` How to identity processor architecture prabhu
2011-01-27  7:13         ` Mulyadi Santosa
2011-01-27 19:27       ` mindentropy
2011-01-27 20:01         ` Denis Kirjanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.