I have a device that runs with Arm(Risc) CPU and I like to write program for it. Transferring binary to this device is easy but I cannot simply put com/exe files compiled in windows in this device.
I don’t have a clue how can I compile a program to generate an Risc processor bin file (byte order, stack and memory architecture).
I am writing my code in C/C++ and I would like to know how can I compile for Arm/Risc?
This device starts running bin file from position 0 of the file (I believe it is like com files for MS-Dos)
You might like to look at GNU Arm website.
It has binaries for compiling for ARM processor in Windows platform. However as Matteo explained in comments, you will need a tool to change
ELF formatto Raw format that you desire.