I want to be able to compile and dump basic asm into hex using Intel syntax. I saw an answer to another question and want to play around with it. It used GCC and objdump. But I'm getting an error I don't understand.
test.c:1:1: error: expected identifier or '(' before '\xa22293b'
I assume it's something dumb/simple. Thanks for any help.
This is the bat I'm trying to run:
cd C:\MinGW\bin
echo 'asm("mov $400835, %rax\n jmp *%rax\n");' > test.c
gcc -c test.c
objdump -M Intel -d test.o
cmd /k