Chapter 44 Flashcards
What is calling conventions of the language
The behavior of HLL when calling functions is known as calling conventions of language.
How are parameter passed in C and pascal
In C parameters are pushed in reverse order with the rightmost being pushed first. While in Pascal they are pushed in proper order with the leftmost being pushed first.
Which register holds the return value
Both C and Pascal return up to 32bit large values in EAX and up to 64bit large values in EDX:EAX.
Who is responsible for removing the parameters
In C the caller removes the parameter while in Pascal the callee removes them.
How can we call assembly with C
nasm –f win32 swap.asm
In NASM an imported symbol is declared with which directive
External directive
In NASM an exported symbol is declared with the which directive
Global directive