How to give avr-gcc the ability to understand binary (eg. b00010110)
Brian Dessent
brian@dessent.net
Tue Jul 3 21:17:00 GMT 2007
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
More information about the Gcc-help
mailing list