I am using arm-non-eabi-gcc as cross compiler.
I have created a simple hello world program in eclipse.
I am able to compile the program using arm-non-eabi-gcc, and helloworld.out[arm/le] file is getting generated but I cannot run it as it is runable only on arm not on windows x86-64.
I know I can use cygwin or mingw to compile the code and I will be able to run the program on windows easily but, I want to use arm-non-eabi-gcc as cross compiler only.
I want to know how can I use the arm-non-eabi-gcc as cross compiler or which flags I need to include in my make file or eclise tool chain setting and create a elf file which can be easily run on windows x86-64.
Note: the generated binary will be always run on windows not any arm system it is just that my project workspace has other projects which use arm-none-eabi-gcc so I want use same and I don't want cygwin or mingw.
My complete workspacr and other projects are easily movable as I keep arm-non-eabi-gcc exe in project directory. Using cygwin or mingw makes compilation and running the binary easy but we need to install these when we change system.
Any guidance or help will be appreciated.
Thank you.