This is the mail archive of the gcc-help@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]

Re: How to give avr-gcc the ability to understand binary (eg. b00010110)


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


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