[Top][All Lists]
[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
- Re: AW: [avr-gcc-list] Gcc bug??, (continued)
- Re: [avr-gcc-list] Gcc bug??, Kang Tin LAI, 2004/03/03
- [avr-gcc-list] gcc binary, cswiger, 2004/03/03
- Re: [avr-gcc-list] gcc binary, Douglas Dotson, 2004/03/03
- Re: [avr-gcc-list] gcc binary, E. Weddington, 2004/03/03
- Re: [avr-gcc-list] gcc binary, cswiger, 2004/03/03
- Re: [avr-gcc-list] gcc binary, Joerg Wunsch, 2004/03/03
- Re: [avr-gcc-list] gcc binary, E. Weddington, 2004/03/03
- Re: [avr-gcc-list] gcc binary, Douglas Dotson, 2004/03/03
- Re: [avr-gcc-list] gcc binary,
Erik Christiansen <=
- Re: [avr-gcc-list] gcc binary, Yura Galayda, 2004/03/04
- Re: [avr-gcc-list] gcc binary, Yura Galayda, 2004/03/05
- Re: [avr-gcc-list] gcc binary, Anton Erasmus, 2004/03/03
Re: [avr-gcc-list] Gcc bug??, David Gay, 2004/03/03
RE: [avr-gcc-list] Gcc bug??, Dave Hylands, 2004/03/03
[avr-gcc-list] Gcc bug??, Brian Cuthie, 2004/03/10