asm stackframe question

Stefan stefan at schuerger.com
Sun Apr 8 05:32:23 PDT 2012


On Sunday, 8 April 2012 at 01:15:48 UTC, Timon Gehr wrote:

> The D calling convention leaves stack cleanup up to the callee. 
> Either mark your function as extern(C) or use
>
> leave
> ret 16
>
> The second option might not be portable across all currently 
> available compilers though.

Hi Timon,

Works fine, thanks!

I don't worry too much about compatibility - GCD uses a 
completely different ASM notation anyway.

Cheers,

Stefan


More information about the Digitalmars-d-learn mailing list