Chapter 44 Flashcards

1
Q

What is calling conventions of the language

A

The behavior of HLL when calling functions is known as calling conventions of language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How are parameter passed in C and pascal

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which register holds the return value

A

Both C and Pascal return up to 32bit large values in EAX and up to 64bit large values in EDX:EAX.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Who is responsible for removing the parameters

A

In C the caller removes the parameter while in Pascal the callee removes them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can we call assembly with C

A

nasm –f win32 swap.asm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In NASM an imported symbol is declared with which directive

A

External directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In NASM an exported symbol is declared with the which directive

A

Global directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly