#include < stdio.h >
main()
{
char str[50];
printf("enter string: ");
scanf("%s",str);
printf("string: %s\n",str);
}
You should assemble the C code using gcc and -O2 optimation. To generate assembly output, use the -S option.
Note: To get full credit for this lab you must demonstrate that you understand every line of assembly output.
I suggest the following resources: