To compile means to check for any errors. It is like a grammatical check while execution means to run it.