This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Packed on a Arm Evaulation Board



Try this:

  struct snejs
  {
    char bokstav1 __attribute__ ((aligned(2));
    char bokstav2 __attribute__ ((aligned(2));
    char bokstav3 __attribute__ ((aligned(2));
    char bokstav4 __attribute__ ((aligned(2));
    short siffra1 __attribute__ ((aligned(2));
    long siffra2;
  } mojs __attribute__ ((packed);


Jesper

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]