![What is a compiler in Operating System?](/QuestionAnswer/45d8ba23-9b4d-409b-b7c1-d47e1bda358c/images/45547103-289c-44ac-8afc-a2eb81aa668f.jpeg)
- Compiler, computer software that converts source code written in a high-level language (e.g., C++) into a set of machine-language instructions that a digital computer's CPU can understand. Compilers are huge programmes that include error-checking and other features.
- Some compilers convert high-level languages to intermediate assembly languages, which are then translated (assembled) into machine code via an assembler.
- Other compilers directly generate machine language. Grace Hopper, an American computer scientist, created the term compiler after designing one of the earliest compilers in the early 1950s.