Click to Rate and Give Feedback

  Switch on low bandwidth view
Windows Driver Kit: Kernel-Mode Driver Architecture
Calling Convention for x64 64-Bit Environments

Of the three calling convention modes (STDCALL, FASTCALL, and CDECL) allowed on the x86-model compiler, the calling convention mode for the 64-bit compiler contained in Microsoft Windows Server 2003 Driver Development Kit (DDK) is limited to just the FASTCALL type. Essentially, the two primary benefits from the 64-bit architecture are the 64-bit addressing capability and a flat set of 16 64-bit registers for general use. Given the expanded register set, using a FASTCALL methodology of calling convention and a RISC-based exception-handling model makes much more sense. This is because the FASTCALL model requires that the first four arguments be in registers and that the stack frame is used to pass the other parameters. The following sections further describe the 64-bit x64 calling convention:


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker