Venkata, Bulusu (IE10) wrote:
Hi,
  I'm having problems with packed structures. Given below is a sample
code("test.c") which uses a packed structure:

#include <stdio.h>
typedef struct {
  char a;
  int b;
}__attribute__((packed)) unaligned_struct;

using '-mstrict-align' as a gcc parameter should do the trick.

Hardy

Reply via email to