I want to know about the C compiler. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to know about the C compiler.

Can any1 tell me in which progm language the C lang compiler is made? and how does it run automatically when we run the program.

20th Jun 2017, 3:13 PM
Itz_me_sandy_
Itz_me_sandy_ - avatar
1 Answer
+ 2
Giving just a summary of what he wrote there, use his article for the finer details. C started with the BCPL language, Ken Thomson had access to a compiler for it that ran on their General Electrics 635 main frame. Unhappy with the language, Thomson used BCPL to write a compiler for the B language, an evolutionary step beyond BCPL that removed some of the technical problems in BCPL. They used B to create programs on their PDP-7 minicomputer, although most of them were little more than toy programs, the machine had very restricted hardware capabilities. One important step taken by Thomson was to rewrite the B compiler in B itself. A common bootstrapping step. That compiler was then gradually tweaked, through a short-lived intermediary step called NB (New B) to start resembling C. The PDP-11 minicomputer was instrumental in that step, giving them enough room to improve the language and compiler https://www.bell-labs.com/usr/dmr/www/chist.html
20th Jun 2017, 3:27 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar