![varonadestiny1109](/avatars/17449.jpg)
varonadestiny1109
06.04.2021 •
Computers and Technology
Compile the RISC-V assembly code for the following C code. Assume that k and mare passed in x8 and x9 respectively. Assume that result returned in x8. This function does not have to make sense, it is a test on your knowledge of writing nested/recursive routines. Compile the assembly code for the following C code. int func (unsigned int m, unsigned int k){ if (k <= 0) return 4; else if (m <=2) return k; else return 2m + 4*func(m-1, k-2) + 6*func(m, k-13); Part 2 (6 marks) How many RISC-V instructions does it take to implement the C code from Part 1? If the variables m and k are initialized to 10 and 10 what is the total number of RISC-V instructions that is executed to complete the loop?
Solved
Show answers
More tips
- S Sport How to Build Arm Muscles? Effective Exercises and Tips...
- H Health and Medicine When can it be said that a person has a normal pulse?...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
- F Food and Cooking How to Properly Cook Buckwheat?...
- F Food and Cooking How Many Grams Are In a Tablespoon?...
- L Leisure and Entertainment Carving: History and Techniques for Creating Vegetable and Fruit Decorations...
Answers on questions: Computers and Technology
- C Computers and Technology In java describe the relationship between an object and a class. provide an example....
- C Computers and Technology Convert the following three hexadecimal numbers to both binary and decimal. (hint: it is probably easier to convert hex to binary first, then convert binary to decimal.)...
- C Computers and Technology Write a program to calculate average result for three experiments. each experiment has three sets of test result and the user is required to enter all 3 results manually....
- C Computers and Technology The java class library interface queue method to put an entey on the back of a queue that returns false if the method falls is a. add b.put c.poll d.offer...
- C Computers and Technology The set of folders and subfolders that matlab searches through to locate a command or m-file is called the in the blank) path...
- C Computers and Technology You have stumbled on an unknown civilization while sailing around the world. The people, who call themselves Zebronians, do math using 40 separate characters (probably because...
- C Computers and Technology Asap type the correct answer in the box. spell all words correctly. which analysis method is used to predict the result of a particular data value based on the other dependant...
- M Mathematics Is 51/8 equal to 41/6...
- H Health The study and treatment of pain is known as...
- E English Which detail from Heart of drakness shows the inffectiveness of the colonizers...
Ответ:
a, b, d
Step-by-step explanation:on 2020 edginuity