Menu

[Solved]1 Write Assembly Functions Implement Following C Functions Uint32t Findname Const Busines Q37190356

1. Write assembly functions that implement the following Cfunctions:

a. uint32_t findName (const BUSINESS business[], uint32_t count,char name[])
// returns the index of the first entry in the array (business)containing count entries which matches the requested name

b. double fsum(const double x[], uint32_t count)
// returns the double-precision floating point sum of the values inthe array (x) containing count entries

c. void scale(double y[], const double x[], uint32_t scale,uint32_t count)
// returns an array (y) containing count entries that is a scaledversion of array x

Notes:
Make sure that the code follows the procedure call standards forARM architecture (see IHI0042F section 5.1), with emphasis on thisrequirement: “A subroutine must preserve the contents of theregisters r4-r8, r10, r11 and SP (and r9 in PCS variants thatdesignate r9 as v6).” (in other words, push and pop R4-11 and LR ifyou need to use them)

Expert Answer


Answer to 1. Write assembly functions that implement the following C functions: a. uint32_t findName (const BUSINESS business[], u… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *