subject

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?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 25.06.2019 07:00
What statement would cause polarization
Answers: 1
question
Computers and Technology, 25.06.2019 17:00
Match each word to its correct meaning. 1. quick launch an area that displays icons representing open applications 2. shortcut an icon used to represent an application, a file, or a folder 3. start menu an area on the taskbar where icons representing programs that are always running are displayed 4. system tray a list of programs that can be opened by clicking on their names or icons 5. taskbar an area on the taskbar from which frequently used programs can be opened pls. will get brainlist
Answers: 1
You know the right answer?
Compile the RISC-V assembly code for the following C code. Assume that k and mare passed in x8 and x...
Questions
question
Mathematics, 03.11.2021 02:30
question
English, 03.11.2021 02:30
question
Mathematics, 03.11.2021 02:30
question
French, 03.11.2021 02:30
question
Biology, 03.11.2021 02:30
question
Mathematics, 03.11.2021 02:40
Questions on the website: 13722363