Re: Intel Assembler on OSX?
Re: Intel Assembler on OSX?
- Subject: Re: Intel Assembler on OSX?
- From: Uli Kusterer <email@hidden>
- Date: Fri, 3 Nov 2006 23:35:42 +0100
Am 03.11.2006 um 21:36 schrieb Jonas Maebe:
You found the wrong docs, it's 16 byte aligned. See
http://developer.apple.com/documentation/DeveloperTools/
Conceptual/LowLevelABI/Articles/IA32.html
It also contains all information regarding how parameters are
passed and how function results are returned.
Thanks! I thought I'd read about 16-bit alignment being required
when the G4 came out, and later hearing Intel was the same, but
Intel's docs said differently.
that would be 8. Instead it's 40.
Without the corresponding C code, it's hard to say why exactly the
compiler is doing that.
The code is ridiculously simple:
int addNumbers( int a, int b )
{
return a + b;
}
int main( int argc, char* argv[] )
{
int myNum = addNumbers( 5, 7 );
return myNum;
}
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