This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sizeof bool > sizeof int ?!?
- To: Rask Ingemann Lambertsen <rask at kampsax dot k-net dot dk>
- Subject: Re: sizeof bool > sizeof int ?!?
- From: Richard Hadsell <hadsell at blueskystudios dot com>
- Date: Mon, 06 Jul 1998 11:31:40 -0400
- CC: EGCS mailing list <egcs at cygnus dot com>, faber at dbai dot tuwien dot ac dot at
- Organization: Blue Sky | VIFX
- References: <1083.490T1577T7154237@kampsax.k-net.dk>
Rask Ingemann Lambertsen wrote:
>
> Possibly, but does it have any impact on the code? Apart form wasting huge
> amounts of memory, that is?
Yes. When our application has 100,000+ objects, the increase in memory
also raises the working set significantly. That is, cache and paging
activity increases, so the application performance decreases.
I realize that some (all?) alpha processors do not handle 1-byte data
efficiently. I hope that the situation will change with future
versions. But it's hard to believe that alphas don't have an efficient
instruction set for (4-byte) int data. What about short data? Are they
handled as badly as 1-byte data?
I would prefer that bool be implemented with the best performance in
mind, including the effects of using memory efficiently, too.
--
Dick Hadsell 914-381-8400 Fax: 914-381-9790
Reply-to: hadsell@blueskystudios.com
Blue Sky | VIFX http://www.blueskystudios.com
1 South Road, Harrison, NY 10528