C++ builtin bool type

Mike Stump mrs@wrs.com
Thu Dec 17 14:55:00 GMT 1998


> From: Toshiyasu Morita <tm@netcom.com>
> To: egcs-bugs@cygnus.com
> Date: Wed, 16 Dec 1998 13:44:21 -0800 (PST)

> Is it possible to change the size of the bool type?

#ifndef BOOL_TYPE_SIZE
#ifdef SLOW_BYTE_ACCESS
#define BOOL_TYPE_SIZE ((SLOW_BYTE_ACCESS) ? (POINTER_SIZE) : (CHAR_TYPE_SIZE))
#else
#define BOOL_TYPE_SIZE CHAR_TYPE_SIZE
#endif
#endif

Think about SLOW_BYTE_ACCESS or BOOL_TYPE_SIZE.  Benchmark it on
largish code, and let us know what your results are.



More information about the Gcc-bugs mailing list