Question: For each of the following c functions (given as function prototypes), which register is used to pass each of the parameters? Which register(s) is used

For each of the following c functions (given as function prototypes), which register is used to pass each of the parameters?

Which register(s) is used to pass the return value?

Note: uint64_t is unsigned 64-bit integer.

1. int add2(int a, int b):

2. int add3(int a, int b, int c):

3. unsigned fibonacci(unsigned n):

4. void mystrcmp(char*dst, char*src):

5. uint64_t sumOf Array(uint32_t X[], int N):

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!