All of lore.kernel.org
 help / color / mirror / Atom feed
From: prabhum@msys-tech.com (prabhu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to identity processor architecture
Date: Thu, 27 Jan 2011 11:39:48 +0530	[thread overview]
Message-ID: <4D410C2C.90000@msys-tech.com> (raw)
In-Reply-To: <AANLkTinSnUnwQkcmRR09Zb63p_1LNxr9Lmw0-1Bfbe9u@mail.gmail.com>

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

  reply	other threads:[~2011-01-27  6:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27  3:28 Added about new kernel on old distro (was Re: most likely, i'll be giving a kernel talk at ottawa LUG next week) Mulyadi Santosa
2011-01-27  6:09 ` prabhu [this message]
  -- strict thread matches above, loose matches on Subject: below --
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  7:07       ` prabhu
2011-01-27  7:13         ` Mulyadi Santosa
2011-01-27 19:27       ` mindentropy
2011-01-27 20:01         ` Denis Kirjanov
2011-01-26 18:08 most likely, i'll be giving a kernel talk at ottawa LUG next week Robert P. J. Day
2011-01-27  6:17 ` How to identity processor architecture prabhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D410C2C.90000@msys-tech.com \
    --to=prabhum@msys-tech.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.