Categories
C/C++

C/C++ struct bit fields: a proposal

Sometimes what you’re given isn’t good enough.
Often there are mechanisms to change that.

I wrote a series of articles about struct bit fields: how they’re not used; how they are used; their limitations, both architecturally and as implemented by the compiler; and hardware considerations.

And those articles offer solutions for the various deficiencies that apparently cause many programmers to not use them, citing (especially) code portability as a concern.

But there is one “killer” scenario (in the bad sense) that makes struct bit fields practically impossible to use in that case. So I wrote a C/C++ language proposal to fix it!

By John Adriaan

John has been working on computers for longer than they've existed... I mean, for longer than they've been connected to the Internet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s