This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to give avr-gcc the ability to understand binary (eg. b00010110)
- From: Brian Dessent <brian at dessent dot net>
- To: lynx dot abraxas at freenet dot de
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 03 Jul 2007 14:17:48 -0700
- Subject: Re: How to give avr-gcc the ability to understand binary (eg. b00010110)
- References: <20070703210437.GA6899@drago.uni-regensburg.de>
- Reply-to: gcc-help at gcc dot gnu dot org
lynx.abraxas@freenet.de wrote:
> I'm wondering why my selfcompiled avr-gcc under Linux is not capable of binary
> numbers like b00010110. In much code there is this binary syntax and it is
> very annoying having to change it into hex manually. How can I give avr-gcc
> this ability?
This feature has existed as a patch for years but only only recently was
added to FSF gcc. So you'll either need to use a recent version of gcc
4.3 (r125346 or later) or you'll need to use somebody's AVR out-of-tree
patchset which contained the patch. Or I suppose you could try
backporting the patch yourself.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23479
http://gcc.gnu.org/viewcvs?view=rev&revision=125346
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01458.html
Brian