/* Compile the following program to assembly with gcc -S power2.c This gives file power2.s, which is assembly in GAS format. Show me the code. If the code refers to 64 bit registers (e.g. %rax instead of %eax), try compiling with gcc -m32 -S power2.c */ #include int main() { int n, m; printf("enter number: "); scanf("%d",&n); m = n; // copy int ax = 1; while (n>0) { ax = ax * 2; n=n-1; } printf("the %dth power of 2 is %d\n",m,ax); return 0; }