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

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

[avr-gcc-list] gcc binary


From: cswiger
Subject: [avr-gcc-list] gcc binary
Date: Wed, 3 Mar 2004 11:42:41 -0500 (EST)

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


reply via email to

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