This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: m68k structure packing
- To: Per Bothner <bothner at cygnus dot com>
- Subject: Re: m68k structure packing
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Thu, 02 Oct 1997 20:14:33 -0700
- cc: Peter Barada <pbarada at wavemark dot com>, egcs at cygnus dot com
Maybe what you are asking for is a "semi-packed" option.
You can get this by using something like
__attribute__ ((packed, aligned(2)))
The attribute packed decreases alignment to 1 byte, and then the attribute
aligned increases it to 2 bytes.
Jim