This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Where to find documentation on pre-defined macros
- From: Brian Dessent <brian at dessent dot net>
- To: Lee Rhodes <lee at rhoba dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 Jul 2007 16:10:25 -0700
- Subject: Re: Where to find documentation on pre-defined macros
- References: <004501c7cf0e$c97ddff0$0701a8c0@lee8075b>
- Reply-to: gcc-help at gcc dot gnu dot org
Lee Rhodes wrote:
> Nonetheless, if I had to write low-level code that depended on ENDIANess,
> what is the most robust/platform-independent way to make that determination
> (and not pay run-time execution costs)?
Autoconf has the AC_C_BIGENDIAN macro that will determine the
endian-ness of the target at configure time.
Brian