How does gcc order bitfields on a little-endian machine? Is the first entry the most significant bit or what?
os.hacker64
-2
Newbie Poster
Recommended Answers
Jump to Post>Is the first entry the most significant bit or what?
IIRC, it's or what.>bump
Don't bump your threads, it's rude. I mean really, is 30 minutes really that long to wait? It's not like Daniweb is a real-time chat with paid people helping 24/7 or anything.
Jump to Post>As for the question?
Sorry, I guess my joke was too subtle. The answer is "or what". IIRC, when you have the following in gcc, a is the least significant bit:struct foo { unsigned int a:1; unsigned int b:1; };
All 5 Replies
os.hacker64
-2
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
os.hacker64
-2
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
jephthah
1,888
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.