In which language was C compiler written | 10 Sep 2009
|
Go4Expert Founder
|
![]() |
| 10Sep2009,17:43 | #1 |
|
In which language was the first ever C compiler written?
|
|
Contributor
|
|
| 10Sep2009,17:53 | #2 |
|
C language
|
|
Contributor
|
|
| 10Sep2009,18:00 | #3 |
|
BTW today's date is 10 september not 11 september.
|
|
Pro contributor
|
![]() |
| 10Sep2009,18:04 | #4 |
|
First version was written in Assembly Language !!
|
|
Pro contributor
|
![]() |
| 10Sep2009,18:05 | #5 |
|
Yes. It is 10th Sept :-)
|
|
~ Б0ЯИ Τ0 С0δЭ ~
|
![]() |
| 10Sep2009,18:11 | #6 |
|
I guess, the first C compiler was written in "B Language", which can be "thought of as C without types".
The first B compiler was written in TMG Source :: http://plan9.bell-labs.com/who/dmr/chist.html |
|
Go4Expert Founder
|
![]() |
| 10Sep2009,22:03 | #7 |
|
Mentor
|
![]() |
| 10Sep2009,22:46 | #8 |
|
Bizarrely enough I reckon kshiteej is correct, reading carefully through http://cm.bell-labs.com/cm/cs/who/dmr/chist.html and specifically "In 1971 I began to extend the B language by adding a character type and also rewrote its compiler to generate PDP-11 machine instructions instead of threaded code. Thus the transition from B to C was contemporaneous with the creation of a compiler capable of producing programs fast and small enough to compete with assembly language. I called the slightly-extended language NB, for `new B.' "
It seems from this that as NB was developed further, there came a point where he decided to call the new language C: "After creating the type system, the associated syntax, and the compiler for the new language, I felt that it deserved a new name; NB seemed insufficiently distinctive. I decided to follow the single-letter style and called it C" So the question really hinges on whether or not the compiler itself used the type system and syntax mentioned here. If it did, then the compiler itself would have been a C compiler. So the answer is either C as kshiteej says, or it's NB, if you can't accept the mildly paradoxical view that the first C compiler was written in C. I guess we'd need DMR's view on the question to be certain what the correct answer is. |
|
Banned
|
|
| 11Sep2009,08:45 | #9 |
|
Comp1 is the compiler for C written in C
|
|
Banned
|
|
| 11Sep2009,08:49 | #10 |
|
But I think it's obvious that the very first C compiler ever written was not written in C, but more probably in assembly language or possibly in a predate language like BCPL.
|





