Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 18 in printed book and digital formats -- plus a one-year subscription (beginning with 19.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 6.3

COLUMN

Calling conventions

Issue: 6.3 (March/April 2008)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software REALbasic Plugins.
Article Description: No description available.
Article Length (in bytes): 6,172
Starting Page Number: 41
Article Number: 6320
Related Web Link(s):

http://en.wikipedia.org/wiki/X86_calling_conventions

Excerpt of article text...

In this article we discuss calling conventions. If a function is called in any programming language there must be some convention about how to call the function.

The calling convention defines how parameters are passed to the called function. Also it defines who cleans the stack when the function returns. The stack is the memory where functions store temporary data. If you declare a local variable in a method, this variable is put on the stack. The space for this variable is released when your method finishes.

Function parameters can be passed by registers or as parameters on the stack. Some calling conventions mix the two techniques depending on how many parameters are passed. The floating point and the integer registers are used depending on the values.

...End of Excerpt. Please purchase the magazine to read the full article.