Question
The below x86 instructions are the beginning of a compiled switch statement. Assume the case labels in the original C program are written in ascending
The below x86 instructions are the beginning of a compiled switch statement. Assume the case labels in the original C program are written in ascending order, and there is no default case. Assume that .L11 is the address of the instruction corresponding to the C statement just after the switch statement.
subl $20, %edi
cmpl $4, %edi
ja .L11
jmp *.L4(,%rdi,8)
What are the integer literal values for the first and last case labels in the C switch statement? Your answers should be exact decimal numbers with no extra characters.
First case literal:
Last case literal:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started