Question 4/17 (1 p.) What is the difference between the mov and lea instructions? Omov dereferences an address, while lea doesn't. Omov can be used to copy a register into another register, while lea cannnot. lea dereferences an address, while mov doesn't. lea can be used to copy a register into another register, while mov cannot.
Which one of the following statements is NOT true? x86-64 provides a larger virtual address space than x86. x86 uses %ebp as the base pointer for the stack frame. The stack disciplines for x86 and x86-64 are different. x86-64 uses %rbp as the base pointer for the stack frame.
Consider a 4-way set associative cache (E = 4). Which one of the following statements it true The cache has 4 lines per set. O The cache has 4 blocks per line. The cache has 4 sets per block. O The cache has 4 sets per line. O None of the above.
What is the output of the following code? Assume that int is 32 bits, short is 16 bits, and the representation is two's complement unsigned int x = 0xDEADBEEF; unsigned short y = 0xFFFF; signed int z = -1; if (x> (signed short) y) printf("Hello"); if (x > Z) printf("World"); O Prints "World" Prints nothing. OPrints "Hello" Prints "HelloWorld"
Question 12/17 (1 p.) 1) mov (%eax, %eax, 4), %eax 2) lea (%eax, %eax, 4), %eax Which of the above accomplishes the following? %eax = 5* %eax Only 2. Only 1. Both 1 and 2. ONeither 1 nor 2.
Question 4/17 (1 p.) What is the difference between the mov and lea instructions? Omov dereferences an address, while le
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am