Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: "\pPascal strings again"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "\pPascal strings again"



On Nov 29, 2005, at 2:10 PM, Chris Espinosa wrote:

The 'pascal' keyword actually became a no-op in the transition to PowerPC more than ten years ago. It specified whether arguments should be pushed on the calling stack in left-to-right or right-to- left order. Because PowerPC passes function arguments in registers, 'pascal' is meaningless in the PowerPC ABI.

With enough function arguments — or the right combination of types of function arguments, if I remember correctly — PowerPC still requires arguments to be pushed onto the stack. However, the PowerPC ABI declared that all arguments must be pushed in left-to-right order for interop purposes, keeping the "pascal" keyword meaningless.


  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: How to rename the volume name of a USB flash memory stick? (From: Laurence Harris <email@hidden>)
 >"\pPascal strings again" (From: alex <email@hidden>)
 >Re: "\pPascal strings again" (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.