first tell us for what platform u have written ur c program is it for microcontroller then u need the compiler for which u have programmed there are various compliers like sdcc, keil etc.....
What I want to do is to , store a application let say a 'game written in C' in my microcontroller and later retrieve it back on PC.
I just think that if I save hex file of the application(which I believe will be the simplest way to store) I'll be able to retrieve it back.
Hope that makes it clear enough
But Iam using Software namely 'Megaload' to transfer data from PC to my Microcontroller through the serial port and it sends only .hex files.
Can you please suggest to overcome this. A new s/w may be..
Hex files are assci strings, text files, it would be quite difficult to convert a windows exe to a hex file, as the format outputs the address and data as strings. windows exe's do not have fixed addresses, they are relocatable.
Your microcontroller software might download the program as a hex file to the programmer. If so, use that.