The difference between compiler and assembler is that a compiler is used to convert high-level programming language code into machine language code. On the other hand, an assembler converts assembly level language code into machine language code.
Both these terms are relevant in context to program execution. The compiler considers the entire code and one and converts it at the same time. Whereas, the assembler, converts the code line by line.
In this article, we bring to you a detailed comparison between a compiler and an assembler. Candidates can also know more about the various High-Level Computer Languages at the linked article.
Compiler vs Assembler
Both, compiler and assembler are used to convert one type of language coding into another and this is mainly the only similarity between the two. However, the two are different from each other in various other aspects.
C++ is an example of compiled language and GNU is an example of assembler. The above-mentioned detailed comparison clearly enables one to analyse the difference between the two.
As discussed earlier, computers are a part of the Science and Technology section of the Civil Services Exam syllabus. Thus, candidates can get notes regarding the same at the UPSC Notes: Science & Technology page.
Also, apart from the difference between compiler and assembler