Chris Rutter writes:
>    struct foo {
>      int x, y;
>      char col;
>    } pixel;
> 
>    pixel pixelarray[1024];

That structure should still be 12 bytes long, since the largest element
is 4 bytes, the alignment of the ints should be preserved in all cases.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |            http://www.arm.linux.org.uk/            /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm

Reply via email to