[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] gcc binary
From: |
Douglas Dotson |
Subject: |
Re: [avr-gcc-list] gcc binary |
Date: |
Wed, 3 Mar 2004 09:05:09 -0800 (PST) |
I've never seen the 0b notation before.
Where have you seen it before? I suspect it is some
vendor-specific extension. I don;t believe it
conforms to ANSI C.
Doug
--- cswiger <address@hidden> wrote:
> This should be simple: does gcc not support binary
> ???
> I've a snipped of code that initializes an array
> with
>
> char bitmap[38][7]={
> //0
> 0b01110000,
> 0b10001000,
> 0b10011000,
> 0b10101000,
> 0b11001000,
> 0b10001000,
> 0b01110000,
>
> etc, but I can't get 0bxxxx to work anywhere.
>
> d=110; decimal
> d=0110; octal
> d=0x110; hex
> d=0b110; fails to compile with invalid suffix on
> integer
> constant.
>
> Sorry if this is gcc and not avr specific.
>
> --Chuck
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list
- [avr-gcc-list] Gcc bug??, Brian Cuthie, 2004/03/02
- Re: [avr-gcc-list] Gcc bug??, Klaus Rudolph, 2004/03/03
- AW: [avr-gcc-list] Gcc bug??, Peter Hierholzer, 2004/03/03
- 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 <=
- 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, 2004/03/03
- 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