Computer Science, asked by pritykumari457, 6 months ago

Below is a C program along with its compiled Assembly
Code (with maximum optimisations), answer the
following questions.
Index
Optimised Assembly Code
C Program
int strlenin(char *pa) {
int count=0;
while(pa[count]!=10)
{
count++;
3
retum counts
1
2
3
4
6
7
8
9
10
11
12
13
14
pa$ = 8
; size =
strlenfn PROC
mov ecx, DWORD PTR _paS[esp-4]
xor eax, eax
cmp BYTE PTR [ecx), al
je SHORT SLN3@strlenfn
npad 6
SLL2@strlenfn:
inc eax
cmp BYTE PTR (eaxtecx), 0
jne SHORT SLL2@strlenfn
SLN3@strlenfn:
ret 0
strlenfn ENDP
15) In which statement of the above assembly
1 point
code does the C variable count get Initialised?
Statement 7
Statement 3
Statement 4
The C variable count is not allocated to any
memory location​

Attachments:

Answers

Answered by keyboardavro
0

Answer:

statement 2

mrk me as brainliest plzzz

Explanation:

Similar questions