Laurent GUERBY wrote:
On Mon, 2005-11-28 at 14:10 +0100, Paolo Bonzini wrote:

Then, I don't know if it would be legal to optimize

  struct r {
    unsigned int x : 7;
    volatile unsigned int y : 1;
  };

  struct r my_reg;

So that my_reg.x is accessed with a non-volatile mem, and my_reg.y is accessed with a volatile one. Would such an optimization be possible within the Ada compile-time rules?

There is no analogous declaration possible in Ada.

Reply via email to