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: Joerg Wunsch
Subject: Re: [avr-gcc-list] AVR-GCC variable size
Date: Mon, 29 Jan 2007 21:26:32 +0100 (MET)

"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. ;-)




reply via email to

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