This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5633: bool is too big



>Number:         5633
>Category:       c++
>Synopsis:       bool is too big
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 08 03:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     harald.soleng@nr.no
>Release:        gcc-2.95.3
>Organization:
>Environment:
sparc-solaris
>Description:
The bool variable takes up 4 bytes or 32 bits where 1 bit 
is sufficient.

For large bool arrays this is a waste of memory.
Why not try to reduce this waste of memory?
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]