I have the following C code extended with assemble x86 :
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// a function to perform a bitwise right rotation
void ror() {
unsigned int rotatedEdx;
__asm__(
"mov $0xabd7e166, %edx;"
"ror $1, %edx;"
"mov %%edx, %0;"
: "=r" (rotatedEdx)
);
printf("%ld\n", rotatedEdx);
}
int main(int argc, char *argv[]) {
ror();
return 0;
}
Which gcc command should i use to compile my file into an executable one ?