This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Packing booleans?
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Sam Lauber <sam124 at operamail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 04 May 2005 11:31:51 +0100
- Subject: Re: Packing booleans?
- References: <20050504062627.3691C416118@ws5-2.us4.outblaze.com>
Sam Lauber 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 would you want to do this? Seems to me you might save up to 7 bytes
of data memory at a vastly greater expansion of code size and reduction
in performance.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk