The first component is the scanner (also known as the lexical analyzer). A typical compiler is made up of several main components. In addition, compilers perform some optimizations to the code. So, in general compilers can be seen as translators that translate from one language to another. Most often, the source language is a high level language and the target language is a low level language. So, both assemblers and compilers ultimately produce code that can be directly executed on a machine.Ĭompiler is a computer program that reads a program written in one language, which is called the source language, and translates it in to another language, which is called the target language. ![]() ![]() However, there are compilers that can convert a source program written in Assembly language and convert it to machine code or object code. Traditionally, source language was a high level language such as C++ and target language was a low level language such as Assembly language. ![]() In general, compiler is a computer program that reads a program written in one language, which is called the source language, and translates it in to another language, which is called the target language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |