Quite often seen in somewhere but you don’t remember where..

There are some predefined macros  you would want to use fequently.

However some of them are hard to find, when you want to use them but don’t remember the exact spelling.

So.. let’s briefly list it here.

  • __OBJC__
  • __i386__
  • for Intel (32-bit)

  • __x86_64__
  • for Intel (64-bit)

  • __ppc__
  • for PowerPC (32-bit)

  • __ppc64__
  • for PowerPC (64-bit)

  • __BIG_ENDIAN__
  • for Big endian CPU

  • __LITTLE_ENDIAN__
  • for Little endian CPU

  • __LP64__
  • for The LP64 (64-bit) data model

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: