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.

FK
Answered by Filippos K. Computing tutor

2433 Views

See similar Computing GCSE tutors

Related Computing GCSE answers

All answers ▸

What is the difference between a high- and a low-level programming languages?


Convert 56 (decimal value) into its binary equivalent


why don't we all program in high level languages all the time if they are so much easier?


What are 'pointers'?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences