This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Endianess attributes
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Paul Chavent <paul dot chavent at fnac dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 13 Nov 2008 16:10:11 -0800
- Subject: Re: Endianess attributes
- References: <491C8A8E.4070400@fnac.net>
On Thu, Nov 13, 2008 at 09:14:06PM +0100, Paul Chavent wrote:
> I wonder why there aren't any endianess attributes ?
Complicated to get them right in all circumstances. Even the
spec (defining how the attributes interact with aliasing analysis,
etc) would be a bear to get right.
One possibility is just to define big-endian and little-endian
integers in various sizes as C++ classes with conversion operators
defined.