O Level Papers!
This is the correct order: write the code, compile it, link required files, load into memory, and then execute.