Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Big Endian,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 14 Topic 9587 of 9775
Post > Topic >>

Re: Big Endian, Little Endian.

by Sohail Somani <sohail@[EMAIL PROTECTED] > May 10, 2008 at 06:14 AM

Le Chaud Lapin wrote:
> Hi All,
> 
> What header or compile-time trick allows one to determine the byte-
> order of target CPU?

AFAIK, you should use predefined macros like the ones here:

   http://predef.sourceforge.net/prearch.html

There are runtime tricks but that is pretty silly unless you are using
an autoconf like thing in your build system to determine endianness.

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 14 Posts in Topic:
Big Endian, Little Endian.
Le Chaud Lapin <jaibud  2008-05-09 21:25:48 
Re: Big Endian, Little Endian.
Sohail Somani <sohail@  2008-05-10 06:14:24 
Re: Big Endian, Little Endian.
"clemd@[EMAIL PROTEC  2008-05-10 06:14:27 
Re: Big Endian, Little Endian.
Sohail Somani <sohail@  2008-05-10 14:08:50 
Re: Big Endian, Little Endian.
"Bo Persson" &l  2008-05-11 09:46:25 
Re: Big Endian, Little Endian.
"Jonathan Thornburg   2008-05-11 09:46:15 
Re: Big Endian, Little Endian.
"clemd@[EMAIL PROTEC  2008-05-13 11:57:27 
Re: Big Endian, Little Endian.
Ronald Natalie <ron@[E  2008-05-13 21:07:16 
Re: Big Endian, Little Endian.
Andy Champ <no.way@[EM  2008-05-13 21:09:23 
Re: Big Endian, Little Endian.
Carl Barron <cbarron41  2008-05-13 21:11:36 
Re: Big Endian, Little Endian.
Greg Herlihy <greghe@[  2008-05-14 08:34:46 
Re: Big Endian, Little Endian.
=?ISO-8859-1?Q?Daniel_Kr=  2008-05-14 08:34:37 
Re: Big Endian, Little Endian.
Martin Bonner <martinf  2008-05-14 11:39:46 
Re: Big Endian, Little Endian.
Alex Shulgin <alex.shu  2008-05-14 17:52:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:52:23 CDT 2008.