Question: TASK: Create assembly language replacements for each of these C functions. The original C functions are defined as weak, so that the linker will automatically
TASK:
Create assembly language replacements for each of these C functions. The original C functions are defined as weak, so that the linker will automatically replace them in the executable image by those you create in assembly; you do not need to remove the C versions. Functions Square and SquareRoot are provided in the main program; do not recreate them in assembly just call them from your assembly language code for functions Square2x and Last.
//1 int32_t Add(int32_t a, int32_t b) {
return a + b ;
}
//2 int32_t Less1(int32_t a) {
return a - 1 ;
}
//3 int32_t Square2x(int32_t x)
{
return Square(x + x) ;
}
//4 int32_t Last(int32_t x)
{
return x + SquareRoot(x) ;
}
I just need to convert the above 4 functions from C to ARM assembly language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
