Daros911
Daros911

Reputation: 435

Calling conventions and Assembly

How can i express a calling convention in assembly language like one can the higher level languages like C++ (by using the __cdecl/__stdcall/__fastcall prefixes in function definition)?

Upvotes: 0

Views: 170

Answers (1)

nevilad
nevilad

Reputation: 985

Languages like C++ need calling conventions so that the compiler can generate the correct code for the call. In assembly language you write argument passing, function call and stack cleanup explicitly. You dont need them in function definition.

Upvotes: 1

Related Questions