Packing booleans?
Nathan Sidwell
nathan@codesourcery.com
Wed May 4 10:55:00 GMT 2005
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
More information about the Gcc
mailing list