subject
Engineering, 26.02.2020 02:22 123martinnnnn

Consider the following high-level recursive procedure:
long long int f(long long int n, long long int k) {
long long int b;
b=k+2;
if (n==0) b = 8;
else b = b + 4 * n + f(n-1,k+1);
return b + k;
}
Translate the high-level procedure f into ARMv8 machine code.

a. Use the ARMv8 preserved register convention;
b. Assume that the procedure starts at address 0x00400100;
c. Keep local variable b in X19;
d. Assume n and k are passed in X0 and X1 respectively and that the result is returned in X2.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15Β°c, and the outlet water temperature is 50Β°c. the tube wall temperature is 14Β°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
You know the right answer?
Consider the following high-level recursive procedure:
long long int f(long long int n, long...
Questions
question
Chemistry, 12.12.2020 16:00
question
Chemistry, 12.12.2020 16:00
question
Chemistry, 12.12.2020 16:00
Questions on the website: 13722361