From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Greene" To: egcs@egcs.cygnus.com Subject: egcs and bitfields Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: <36E844B2.8DAEFAAF@eecs.umich.edu> X-SW-Source: 1999-03n/msg00434.html Message-ID: <19990331234600.csdokpT0fYHMsx0vIzttuHb8hH5LFm3ouJ6TBFzTQ4k@z> I sent this question to the list a few days ago but got no response. Can someone please help me out? I'm trying to figure out the alignment rules that egcs uses for bitfields under Linux 2.0.x. It seems that egcs does not follow the System V ABI stardard. Specifically, the part about not allowing bitfields to cross the alignment boundaries of their base types (i.e. int c:17 should not cross a 32-bit boundary, but egcs allows it). Also, bitfields declared "int" are treated as signed by egcs while the System V ABI indicates they are unsigned. What ABI is egcs conforming to? I need some detailed information as we need to interface to code compiled by egcs. Thanks! -Dave