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: 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


reply via email to

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