| ??? 07/27/11 20:52 Read: times |
#183090 - Wrong answer for this question Responding to: ???'s previous message |
Abhishek Singh said:
One way to do it is usning C bit field construct No, that will not achieve what the OP asked. He didn't just ask for "a bit variable" - he specifically asked for a bit variable "As in KEIL C51" In Keil C51, a bit variable is specifically a 1-bit variable - taking advantage of the 8051 architecture's bit addressing features. A 'C' bitfield will not do that - not even in Keil C51! |
| Topic | Author | Date |
| Bit variable in KEIL Arm | 01/01/70 00:00 | |
| Hw bit variables normally not available in processors | 01/01/70 00:00 | |
| Not quite true. | 01/01/70 00:00 | |
| He covered that | 01/01/70 00:00 | |
| Choice of forum | 01/01/70 00:00 | |
| bool | 01/01/70 00:00 | |
| bool is nothing specifically to do with single-bit variables | 01/01/70 00:00 | |
| Not wrong | 01/01/70 00:00 | |
| Yes - wrong! | 01/01/70 00:00 | |
| bit != bool even if nominal storage range is same | 01/01/70 00:00 | |
| Bit Fields | 01/01/70 00:00 | |
Wrong answer for this question | 01/01/70 00:00 |



