Endianess attribute

2009-07-02 Thread Paul Chavent
Hi. I already have posted about the endianess attribute (http://gcc.gnu.org/ml/gcc/2008-11/threads.html#00146). For some year, i really need this feature on c projects. Today i would like to go inside the internals of gcc, and i would like to implement this feature as an exercise. You alread

Endianess attributes

2008-11-13 Thread Paul Chavent
Hi. I wonder why there aren't any endianess attributes ? For example we could write this : int x __attribute__ ((endianess (lil))) = 0; Is it a silly suggestion ? No one need it ? Is it a bad design need ? Could someone give me some information ? Thanks. Paul CHAVENT