Reputation: 435
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
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