This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/23479] New: Implement binary constants with a "0b" prefix
- From: "j at uriah dot heep dot sax dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2005 12:22:57 -0000
- Subject: [Bug preprocessor/23479] New: Implement binary constants with a "0b" prefix
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
It is suggested to implement binary contants as a GCC extension to the
language. This is a frequently requested item in microcontroller
environments, and several other compilers already implement it. The
commonly used prefix is "0b", as this does not contradict the standard
C syntax, and allows for an easy private extension to the language.
Several distributions of AVR-GCC (including the popular "WinAVR" one,
and the FreeBSD port of AVR-GCC) have been shipping with this
extension for quite some time, and general user feedback about it is
positive.
--
Summary: Implement binary constants with a "0b" prefix
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P1
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: j at uriah dot heep dot sax dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23479