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

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

RE: [avr-gcc-list] AVR-GCC variable size


From: Eric Weddington
Subject: RE: [avr-gcc-list] AVR-GCC variable size
Date: Mon, 29 Jan 2007 14:15:37 -0700

You can find out your answer by looking in the stdint.h file in
<install>\avr\include:


/** \name Fastest minimum-width integer types
   Integer types being usually fastest having at least the specified width
*/

...

typedef uint8_t uint_fast8_t; 


If you have it in your stdint.h file, then it's supported. ;-)

Eric


> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of dimax un
> Sent: Monday, January 29, 2007 2:05 PM
> To: Joerg Wunsch
> Cc: address@hidden
> Subject: Re: [avr-gcc-list] AVR-GCC variable size
> 
> Hi what is the
> uint_fast8_t ? What is the difference from regular uint8_t?
> What gcc version is it supported from?
> 
> thanks.
> 
> 
> On 1/29/07, Joerg Wunsch <address@hidden> wrote:
> > "Ricardo Albarracin B." <address@hidden> wrote:
> >
> > > What's size the: (using avr-gcc 3.4.5)
> > >
> > > char  -> 1 byte
> > > int   -> 2 byte
> > > short -> ?
> > > long  -> 4 byte
> > > float -> ?
> > > double        -> ?
> >
> > Well, you could always use the sizeof operator. ;-)
> >
> > 1, 2, 2, 4, 4, 4
> >
> > There's also long long with 8 bytes.
> >
> > For integer types, better use the names from <stdint.h>, 
> like uint8_t,
> > int16_t, uint_fast8_t etc.
> >
> > --
> > cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL
> >
> > http://www.sax.de/~joerg/                        NIC: JW11-RIPE
> > Never trust an operating system you don't have sources for. ;-)
> >
> >
> > _______________________________________________
> > AVR-GCC-list mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> >
> 
> 
> -- 
> ;-------------------------------------------------------
> ; Micro connection to the MacroVision
> ; http://www.xdimax.com
> ;--------------------------------------------------------
> 
> 
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> 





reply via email to

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