Re: Structs pushed on stack backwards?
Re: Structs pushed on stack backwards?
- Subject: Re: Structs pushed on stack backwards?
- From: Uli Kusterer <email@hidden>
- Date: Sun, 29 Apr 2007 22:47:48 +0200
Am 29.04.2007 um 21:15 schrieb Eric Albert:
Actually, it's easier to have it pushed this way. Here's one
reason: x is at offset 0 in the struct and y is at offset 4. When
code references this struct, it'll reference it from the base
address. If that's, say, êx, x ends up as 0(êx) and y is 4(êx).
Right! Sorry for that stupid question. That, of course, makes
perfect sense. That way you can use the same offset tables for
everything and save yourself a little maths.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden