G
gamja
Hi all.
I know that some padding bits are inserted between data members of a
structure. Is this rule also applied for the variables on local stack
or global??? For example, in following code dumps...
------------
struct foo foo1;
....
struct bar bar1;
....
char byte;
int dword;
int main(void)
{
}
--------------
Is it allowed to expect that each start address of foo1, bar1, byte and
dword are aligned 4bytes?
Does the C99 specification state any rules related with this problem?
Thanks in advance.
Best regards
GAMJA
I know that some padding bits are inserted between data members of a
structure. Is this rule also applied for the variables on local stack
or global??? For example, in following code dumps...
------------
struct foo foo1;
....
struct bar bar1;
....
char byte;
int dword;
int main(void)
{
}
--------------
Is it allowed to expect that each start address of foo1, bar1, byte and
dword are aligned 4bytes?
Does the C99 specification state any rules related with this problem?
Thanks in advance.
Best regards
GAMJA