avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] gcc binary


From: Erik Christiansen
Subject: Re: [avr-gcc-list] gcc binary
Date: Thu, 4 Mar 2004 12:04:38 +1100
User-agent: Mutt/1.3.28i

On Wed, Mar 03, 2004 at 08:20:57PM +0100, Joerg Wunsch wrote:
> It seems to be quite common among µC C compilers.  Unlike the PORTB.0
> notation where I don't see how this would ever fit at all into legal C
> syntax, I can imagine that 0b is a perferctly legal vendor extension
> for a compiler.

It's also perfectly legal for avr-as (OK, that's binutils, but gcc is
nothing without it):

ldi    r16,0b10111111

Overcoming the compiler deficiency seems attractive. Portability is a
bit of a worry, though. I wonder if the 'C' world could be educated, in
time?

> Just curious, I've once made a patch for GCC that implements it.  This
> was merely intented to be a proof of concept.  Does anyone
> incidentally know whether this feature might have already been
> proposed (and perhaps put down) to the GCC folks?  If not, do people
> feel I should submit that patch?

> In case anyone is interested:
> 
> http://www.sax.de/~joerg/gcc-0b.patch
> 

Interested enough to take a copy for future reference. (When this
first project is delivered, I'll take a look at the compiler. :)

Thanks Jörg.

Erik

_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]