| ??? 03/20/02 19:36 Read: times |
#21035 - RE: bit array in C (for 8051) |
Other than it's not a feature of C, there is no reason why arrays of bits are not supported. But not being part of the C specification is a pretty big reason.
For example, bit honey[32]; could be stored in 4 successive bytes, byte honey[4]; references like this x=honey[20]; could be converted to the compiler to x=(honey[20 / 8] & 2^(20 &7)) >> (20&7); All is fine, but it's not part of the language. Maybe you could persuade Jon Ward to add it. There's nothing stopping you from just using this code in C, either. |
| Topic | Author | Date |
| 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 |



