K
kid joe
Hi,
I'm using assembler and C code together. Now suppose I have the following:
struct foo {
int x;
int y;
...
}
void bar(struct foo)
{
...
};
My question is: Is the order of the struct vars on the stack (i.e. y, x)
is defined within C.
In my assembler code, I need to push the values onto the stack and then
call bar(). My code is working for me, but I want to know whether it is a
defined behaviour or it is specific to gcc.
Thanks!
I'm using assembler and C code together. Now suppose I have the following:
struct foo {
int x;
int y;
...
}
void bar(struct foo)
{
...
};
My question is: Is the order of the struct vars on the stack (i.e. y, x)
is defined within C.
In my assembler code, I need to push the values onto the stack and then
call bar(). My code is working for me, but I want to know whether it is a
defined behaviour or it is specific to gcc.
Thanks!