Simulate ARM7 over Qemu

Hello all, I am a complete beginner in ARM and I have only worked with AVR and Arduino boards before. What I want to do is write a simple C program which will print "Yes" when 1 is entered and "NO" when 2 is entered by the user. Now I have to compile the code using gnu GCC arm toolchain and create a binary patch for executable generated. The patch should work like this: When entered 1 print "NO" and for 2 print "Yes".
1. How do I compile the code using this toolchain
2. How to create and executable file
3. How to create a binary patch which would work as said.

I could not find any proper tutorials to do this on Windows 10 machine. So any tutorial links you can share to solve this will also be appreciated.

Thank you

More questions in this forum