Keil Logo

C51: SIGNED BIT FIELD NOT SUPPORTED


Information in this article applies to:

  • C51 All Versions

QUESTION

I have problems using signed bit fields. Are signed bit fields not supported by Keil C51?

ANSWER

Per ANSI standard, the behavior on bit fields is implementation specific. In Keil C51, bit fields are always unsigned. There is no way to define signed bit fields.

Bit fields are inefficient on an 8051. With an 8051, you should use bdata addressable objects.

MORE INFORMATION

SEE ALSO

Last Reviewed: Tuesday, August 30, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.