This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Endianess attributes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]