Closed GoogleCodeExporter closed 9 years ago
Under what circumstances does the optimizer manage to pack arrays of bools ?
Does this require a newer compiler?
I added a "bool test[100];" to blink, along with some code to fill it up, and
it used 100 bytes of memory...
Original comment by wes...@gmail.com
on 9 Sep 2012 at 5:45
Hi,
I thought arrays could be compressed like packed structs. One has to use
vector<bool>. So on memory I'm wrong.
There's still the type checking advantage when using bool instead of boolean,
but that's secondary I think.
The issue can certaintly be closed.
Original comment by charlesg...@gmail.com
on 9 Sep 2012 at 8:39
Closed as per discussion. Not really possible to do in standard C/C++
Original comment by wes...@gmail.com
on 30 Sep 2012 at 9:23
Original issue reported on code.google.com by
charlesg...@gmail.com
on 8 Sep 2012 at 7:50