• Volatile struct members
    Hi, I would like to prevent structure members optimization. I used volatile keyword: typedef volatile struct { volatile ... volatile uint32_t discard; volatile ... } regs_t; I declared...
  • Volatile struct members
    Hi, I would like to prevent structure members optimization. I used volatile keyword: typedef volatile struct { volatile ... volatile uint32_t discard; volatile ... } regs_t; I declared...
  • struct with members' sizes
    I'm using C51 v3.20, and when I compiled the following structure, the compiler allocates 6 bytes for it. typedef struct t_channel_info { int target_temp:9; unsigned char control_mode:2; unsigned...
  • struct with members' sizes
    I'm using C51 v3.20, and when I compiled the following structure, the compiler allocates 6 bytes for it. typedef struct t_channel_info { int target_temp:9; unsigned char control_mode:2; unsigned...
  • Access to Bit Struct Member in "Extendet Inline Assembler"
    How can i access to a bit which is a member of a C Struct in the "Extendet inline Asembler" I tried various versions like below, but the compiler only generates Error messages struct { unsigned...