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

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

RE: [avr-gcc-list] How to specifiy binary constants ?


From: Weddington, Eric
Subject: RE: [avr-gcc-list] How to specifiy binary constants ?
Date: Sun, 4 Jan 2009 08:24:45 -0700

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Vincent Trouilliez
> Sent: Saturday, January 03, 2009 10:01 PM
> To: address@hidden
> Subject: Re: [avr-gcc-list] How to specifiy binary constants ?
> 
> Preston Wilson <address@hidden> wrote:
> > There is a GCC extension that supports binary constants:
> > http://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html
> > 
> > I have not used it, but I ran across the documentation 
> while looking at
> > other extensions.
> 
> Thanks, I just gave it a try, seems to have been implemented 
> in avr-gcc,
> "0Bxxxxxxx" appears to compile and work as expected, yeepee... :-)
> 

And yes, that avr-gcc extension was implemented by Joerg Wunsch. ;-)

Just like hexadecimal constants, you can specify either lower case or upper 
case:
0bxxxxxxxx
0Bxxxxxxxx




reply via email to

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