Questions tagged [fastcall]

Anything related to the `fastcall` calling convention, i.e. one of the common subroutine calling conventions used on systems with x86 architecture.

Anything related to the fastcall calling convention, i.e. one of the common subroutine calling conventions used on systems with x86 architecture.

See Wikipedia on:

18 questions
0
votes
0 answers

x86 gcc compiled assembly code: fastcall behavior

I am working on some x86 assembly program analysis tasks, and I am trying to figure out the fastcall behavior. Although on 32-bit x86 platform, the stack is defined to pass the function parameters in the calling conversion. However, I observed that…
lllllllllllll
  • 8,519
  • 9
  • 45
  • 80
-1
votes
1 answer

Call function in C to Assembly

If we have the following function: int func(int n, float f, char* s, double* d); The call to the function in Assembly will be like that: movl , %ecx movl , %edx pushl pushl call func Is this correct? Why it's in this order? It's…
Pedro Gómez
  • 214
  • 1
  • 8
-1
votes
1 answer

fastcall how to use for more than 4 parameters

I was trying to build a function in assebmly(FASM) that used more than 4 parameters. in x86 it works fine but I know in x64 with fastcall you have to spill the parameters into the shadow space in the order of rcx,rdx,r8,r9 I read that for 5 and etc…
Darrin Woolit
  • 69
  • 1
  • 7
1
2