[A83] From C to asm


[Prev][Next][Index][Thread]

[A83] From C to asm




Hi:

	Lets say I have a senario like this.
Two type vec3_t.
typedef float vec_t;
typedef vec_t vec3_t[3];
vec3_t IN
&
vec3_t OUT

IN[0] = 1
IN[1] = 2
IN[2] = 3
OUT[0] = 4
OUT[1] = 5
OUT[2] = 6

(Don't get hung up on the values, I just made them up)
Now I also have a function:

void Copy (vec3_t in, vec3_t out)
{
	out[0] = in[0];
	out[1] = in[1];
	out[2] = in[2];
}

Now, here is my question.  In ASM, how are values of those two types stored?
Like, when you come to the function the values are stored in registers or on
the stack right?  So, how would these values be stored?




References: