This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Packing booleans?
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Sam Lauber <sam124 at operamail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 4 May 2005 14:25:41 +0200
- Subject: Re: Packing booleans?
- References: <20050504062627.3691C416118@ws5-2.us4.outblaze.com>
- Reply-to: Richard Guenther <richard dot guenther at gmail dot com>
On 5/4/05, Sam Lauber <sam124@operamail.com> wrote:
> Would it be possible to have a -fpack-bools option that packs booleans into
> the smallest form possible (8 booleans -> 1 8-bit reg, etc.) into a register
> (or memory, as the case may be)?
Why don't you use bitfields then?
Richard.