Re: A basic question question about volatile use
- From: santosh <santosh.k83@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 13:07:04 +0530
Ark Khasin wrote:
santosh wrote:
Ark Khasin wrote:Of course struct {uint8_t a; uint32_t b; uint8_t c;} is likely to have
I was under the impression that if a struct contains only uint8_t
and arrays thereof, there is no padding. Is it wrong?
The [u]intN_t types are specified to contain any padding bits, but
padding between structure members of these types in still allowed.
padding somewhere. But uint8_t alone?..
I think you are conflating padding bits (which the [u]intN_t types
cannot have) with padding bytes, which are allowed between any two
structure members. It is not allowed between elements of an array.
.
- References:
- A basic question question about volatile use
- From: Ark Khasin
- Re: A basic question question about volatile use
- From: Flash Gordon
- Re: A basic question question about volatile use
- From: Ark Khasin
- Re: A basic question question about volatile use
- From: santosh
- Re: A basic question question about volatile use
- From: Ark Khasin
- A basic question question about volatile use
- Prev by Date: Re: Weird malloc behaviour
- Next by Date: Re: GCC question
- Previous by thread: Re: A basic question question about volatile use
- Next by thread: Re: A basic question question about volatile use
- Index(es):
Relevant Pages
|