Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/21/02 01:03
Read: times


 
#21046 - RE: bit array in C (for 8051)
It all boils down to this...

1. Bit arrays are not portable across different architectures.

2. Macros that set and clear bits using shifts and masking are portable.

All compiler companies (even us embedded guys) want to reduce the amount of special stuff we add to the language. I seem to recall that K&R had a lot of discussion over this and bit fields and boolean operators back in the late 70's.

Jon

List of 14 messages in thread
TopicAuthorDate
bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051)            01/01/70 00:00      
RE: bit array in C (for 8051) - Kapil            01/01/70 00:00      
Bit pointers in C51            01/01/70 00:00      

Back to Subject List