PROGRAMMING ARDUINO INTEL GALILEO

I want to know how to program direct to the SRAM memory in the Intel Galileo.
I mean, I would like to program my board, and when I disconnect it from the power supply, the Sketch continue into the board.
which is the best software to program in the Galileo?
Thank you