English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-10-12 18:49:43 · 6 answers · asked by raghu n 1 in Computers & Internet Programming & Design

6 answers

Compilers are programs that take a source file and turn it into machine code. As such, they take a higher level language and create a lower-level program.
In the beginning, all that existed was machine language. Then, opcodes were writen as assembly code. These were translated into machine language with an assembler. The first compilers were written in assembler, and then we had a way to write programs in higher level languages such as C. It would be much more difficult to write the compiler in assembler (though portions of it may have been done so). So, we use a high level language to create another high level language.

2006-10-12 18:56:04 · answer #1 · answered by Deirdre H 7 · 1 0

Because C is a good low level language that is good for such a task. Writing a whole compiler in assembly would be tedious. Writing one with Visual Basic, Java, COBOL, Fortran, C#, etc. in that fashion would be futile, who knows if it would even be possible. And if you have a C++ compiler good enough to build another C++ compiler, why not use the original compiler and bypass the whole hair pulling thing.

2006-10-12 19:57:26 · answer #2 · answered by Chris J 6 · 0 0

Not only C++, almost all compilers are written in assembly level language and C. This is because C language supports some commands of assembly level language.

2006-10-12 19:27:22 · answer #3 · answered by Anonymous · 0 0

truthfully, as quickly as I used Deitel and Deitel's C, a thank you to application, they have been describing a thank you to enforce an interpreter for C in C. yet they touched on compiler. purely positioned, no longer purely are you able to yet many of the library purposes are defined as C purposes in Kernighan and Ritchie's The c application language. So a good style of that artwork is done. this might properly be a no longer uncommon project in laptop technological know-how, so why do no longer you purely p.c.. up one or yet another authoritative textbook and you gets a greater advantageous communicate than you will get here.

2016-10-02 06:15:07 · answer #4 · answered by ? 4 · 0 0

as the name indicates that c++ is a successor of c. do u learn exactly to write essays in new language without learning alphabets? for java it is both compiler & interpreter.as the interprter debugs ur source in line by line.it is not incase of c or c++.c++ is a semi object oriented.its compiler may written in top-down or bottom-up manner for better performance.

2006-10-12 19:03:17 · answer #5 · answered by G K 2 · 0 0

Let me ask you this - what other language do you suggest we write them in?

It's going to be C or asm, and personally, I think C is a lot friendly, don't you?!

Rawlyn.

2006-10-12 21:20:31 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers