Description
Problem:Copy and paste the code below to https://godbolt.org/Use the following compiler for the ASM code generation: armv7-a clang 11.0.0Under the compiler options, use -Os Explain each and every single line of the C programExplain each and every single line of the ASM program#include
#include
Don't use plagiarized sources. Get Your Custom Assignment on
Cmpe 120 hw
From as Little as $13/Page
__attribute__((noinline))
int sum2(int a, int b) {
return a + b;
}
__attribute__((noinline))
void print_the_value(int value) {
printf(“%d”, value);
}
int entry_point() {
int a = rand(); // R4
int b = rand(); // R0
int result = sum2(b, a);
print_the_value(result);
}