MASM x86 fastcall function declaration… how?
问题 I'm trying to make a VisualStudio 2010 C program call a fastcall convention assembly routine. This is the declaration in the C code: extern boolean _fastcall InNonSuspendableCriticalRegion(DWORD); This is the declaration in the assembly code: public @InNonSuspendableCriticalRegion@4 @InNonSuspendableCriticalRegion@4 proc near ; fastcall <code> @InNonSuspendableCriticalRegion@4 endp I get the following linker error: Assembling: C:\DMS\Domains\PARLANSE\Tools\RunTimeSystem\Source\PARLANSE0.asm 1