padding mechanism in structures
- From: "Roman Mashak" <mrv@xxxxxxxx>
- Date: Wed, 15 Jun 2005 20:53:09 +0900
Hello, All!
Could you please explain me how is the padding of 'structure' fields is
made?
For example:
struct {
char a1;
int a2;
double a3;
} str;
When I'm checking "sizeof str" in GCC compiler I get the value of size as
16, it means some bytes are padded right?
Thanks!
PS. Or, point me to Inet link, if there is one.
With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx
.
- Follow-Ups:
- Re: padding mechanism in structures
- From: Lew Pitcher
- Re : padding mechanism in structures
- From: Jean-Claude Arbaut
- Re: padding mechanism in structures
- From: Mehta Shailendrakumar
- Re: padding mechanism in structures
- Prev by Date: Re: pow(2, 1/2) != pow(2, 0.5) problem
- Next by Date: Re: pow(2, 1/2) != pow(2, 0.5) problem
- Previous by thread: Re: Total protection for your software against crack
- Next by thread: Re: padding mechanism in structures
- Index(es):
Relevant Pages
|