Hi all
is bit fields are supported in uV3???
regards
jagmeet
Bit fields are part of the C standard. Of course they are supported.
struct flags { unsigned int a:1; unsigned int b:1; }flag_status;
main() { flag_status.a=1; flag_status.b=1; } this test code i have written in uV3. But when i check elemnets a and b in watch window in dubug mode, i have found that they have used 16bit individual integers. but im expecting that these elemnts should use a single int space as i am specifying single bit width to the elements..wat is the problem
main() { flag_status.a:1; flag_status.b:1; } this test code i have written in uV3. But when i check elemnets a and b in watch window in dubug mode, i have found that they have used 16bit individual integers. but im expecting that these elemnts should use a single int space as i am specifying single bit width to the elements..wat is the problem
"wat is the problem"
It'll be the same as when you posted exactly the same question an hour an a half before!
A common problem with web browsers. It is quite easy to press the back button...
View all questions in Keil forum