avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] structure packing


From: Ömer Sinan KAYA
Subject: Re: [avr-gcc-list] structure packing
Date: Thu, 5 Jun 2003 00:13:58 +0300

sorry i mean 8 bits instead of 8 byte in my previous mail.Thanks for
the hint.
Sinan,

----- Original Message -----
From: "Ralph Mason" <address@hidden>
To: <address@hidden>
Sent: Wednesday, June 04, 2003 11:49 PM
Subject: RE: [avr-gcc-list] structure packing


> Does not the AVR port alway pack to the byte anyway?
>
> Ralph
>
>
> > -----Original Message-----
> > From: address@hidden
> > [mailto:address@hidden Behalf Of
address@hidden
> > Sent: Thursday, 5 June 2003 8:37
> > To: Ömer Sinan KAYA; address@hidden
> > Subject: Re: [avr-gcc-list] structure packing
> >
> >
> > > hi,
> > > i have a limited size in memory and i dont want compiler
> > to align my
> > > structure to 8 byte boundaries.I wonder if it is possible
> > with gcc. I
> > > remember using pragma commands in visual C++ to avoid
> > packing. What
> > > would be the command for disallowing compiler to pack the
> > structure.
> > > thanks.
> > >
> >
> > See the GCC docs:
> > <http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Code-Gen-
> > Options.html#Code%20Gen%20Options>
> >
> > Look for -fpack-struct. This option is used in the WinAVR
> > sample makefile. To not pack structures, remove this
> > option, or alternatively use -fno-pack-struct.
> >
> > Don't forget to consult the manual first.
> >
> > Eric
> >
> >
> >
> > _______________________________________________
> > avr-gcc-list mailing list
> > address@hidden
> > http://www.avr1.org/mailman/listinfo/avr-gcc-list
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003
> >
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list



reply via email to

[Prev in Thread] Current Thread [Next in Thread]