What does a compiler do in the context of programming?

A compiler's main purpose is to translate source code (code that we write in Java, C++ etc) into machine readable code. Think of it like a machine which takes our document of code and translates it into 0's and 1's, i.e. a translator/mediator between us and the machine. Its secondary purpose, is to spot syntactical errors in our code or some possible runtime errors which might occur later and warn us about them. The process of translating source code into machine readable code and spotting such errors is known as compiling.

Answered by Filippos K. Computing tutor

2105 Views

See similar Computing GCSE tutors

Related Computing GCSE answers

All answers ▸

Convert the hexadecimal value 'C3' into its binary equivalent.


What is batch processing?


how do you convert binary to a form in which you can perform subtraction?


James would like to store a video clip that is 20 frames per second and has a duration of 76 seconds. The resolution of this video is 1280x720 with a colour depth of 24 bits. Calculate the storage requirement for the uncompressed video clip.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences