You'll need to download and install Arduino IDE http://www.arduino.cc/en/Main/Software. Then head to the wiki or the github link, have a read through some tutorials to get your head around it.
http://reprap.org/wiki/Marlin
https://github.com/MarlinFirmware/Marlin