public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to give avr-gcc the ability to understand binary (eg. b00010110)
@ 2007-07-03 21:04 lynx.abraxas
  2007-07-03 21:17 ` Brian Dessent
  2007-07-04  7:25 ` Kövesdi György
  0 siblings, 2 replies; 3+ messages in thread
From: lynx.abraxas @ 2007-07-03 21:04 UTC (permalink / raw)
  To: gcc-help

Hello!


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?

Thanks
Lynx


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to give avr-gcc the ability to understand binary (eg. b00010110)
  2007-07-03 21:04 How to give avr-gcc the ability to understand binary (eg. b00010110) lynx.abraxas
@ 2007-07-03 21:17 ` Brian Dessent
  2007-07-04  7:25 ` Kövesdi György
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Dessent @ 2007-07-03 21:17 UTC (permalink / raw)
  To: lynx.abraxas; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to give avr-gcc the ability to understand binary (eg. b00010110)
  2007-07-03 21:04 How to give avr-gcc the ability to understand binary (eg. b00010110) lynx.abraxas
  2007-07-03 21:17 ` Brian Dessent
@ 2007-07-04  7:25 ` Kövesdi György
  1 sibling, 0 replies; 3+ messages in thread
From: Kövesdi György @ 2007-07-04  7:25 UTC (permalink / raw)
  To: gcc-help

Hi,

I have another idea: use bitfield structures instead of those ugly binary 
numbers. :-)
gcc has very good optimizing features about it.

Regards
Gyorgy Kovesdi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-04  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-03 21:04 How to give avr-gcc the ability to understand binary (eg. b00010110) lynx.abraxas
2007-07-03 21:17 ` Brian Dessent
2007-07-04  7:25 ` Kövesdi György

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).