site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com