subject
Engineering, 17.02.2020 19:34 jumpgirll

The code that follows shows an example of branching on an enumerated type value in a switch statement. Recall that enumerated types in C are simply a way to introduce a set of names having associated integer values By default, the values assigned to the names go from zero upward. In our code, the actions associated with the different case labels have been omitted. Enunerated type creates sat of constants nusbered 0 and uprazd. typedef 2 enun {MOOLA, KODE-B, MODES, 190DE-D, MODE-E} node-t ; 4 long avitch3(long .pl, Long p2, modet action) long result- o switch (action) case HODE A 10 case MODE C 12 13 case MODED 15 16 default return result; The part of the generated assembly code implementing the different actions is shown in Figure 3.52. The annotations indicate the argument locations, the register values, and the case labels for the different jump destinations Fill in the missing parts of the C code. It contained one case that fell through to another - try to reconstruct this. pi in %rdi, p2 in %rsi, action in %edx 1.L8 MODE E $27, novl ret %eax ·L3 : movq movq movq ret (%rsi), %rax (%rdi), %rax %rdx, (Xrsi) ·L5: MODE B 10 11 12 novq addq movq ret (%rdi), %rax (%rsi), %rax %rax, (%rdi) L6 : 59, (%rsi), (%rdi) 15 16 novq novg ret %rax 18 "L7: 19 novq rsi), hrax NODE D movq nov! ret %rax ,(%rdi) $27,%eax L9 : default movl ret $12, %eax

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
You know the right answer?
The code that follows shows an example of branching on an enumerated type value in a switch statemen...
Questions
question
Mathematics, 06.11.2019 07:31
question
Mathematics, 06.11.2019 07:31
question
Geography, 06.11.2019 07:31
question
Mathematics, 06.11.2019 07:31
Questions on the website: 13722359