Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Alfred Huang, February 21, 2006
Recently there have been questions on argument passing for AMD64. As part of the calling convention, argument passing and returned values are described in detail in the AMD64 ABI. The portion on passing scalar arguments is clear and straightforward, but the description for passing aggregates is pretty algorithmic and rather obscure. Maybe I can help by explaining it with examples.