Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_fastcall specify fast calling convention</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fastcall               Specify Fast Calling Convention

    If you declare a function with _fastcall, the fast calling
    convention, which passes parameters in the registers, not on the
    stack, will be used. This calling convention can save considerable
    time; however, do not use _fastcall with in-line assembly language
    functions defined with _asm, functions with variable-length parameter
    lists, or functions with any of these attributes: _cdecl, _export,
    _fortran, _interrupt, _pascal, _saveregs.

    Arguments will be passed in the registers when possible (e.g.
    floating point values or structures are pushed onto the stack).
    Here are the register used in _fastcall calls to pass these types of
    arguments:

     chars or unsigned chars     AL, DL, BL
     ints or unsigned ints       AX, DX, BX
     longs or unsigned longs     DX:AX
     _near pointers              BX, AX, DX



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson