第一个C编译器是如何写的? [英] How was the first C compiler written?

查看:163
本文介绍了第一个C编译器是如何写的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是真的,第一个C编译器是用C编写的本身呢?那么,如何在它执行和编译?或者说,是该编译器用汇编语言写的?

Is it true that the first C compiler was written in C itself? Then, how was it executed and compiled? Or, was this compiler written in assembly language?

推荐答案

http://cm.bell-labs.com/who/dmr/chist.html > C语言的历史丹尼斯里奇的书面记录。

It is described pretty well in Dennis Ritchie's writeup of the C language history.

捐赠只是一个他写的东西有总结,用他的文章的精细度。下开始与BCPL语言,肯·汤姆森曾获得它一个编译器,他们的通用电气635主框架上运行。不满的语言,使用汤姆逊BCPL写为B语言,一种革命性的一步超越BCPL是去掉一些技术问题BCPL编译器。

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.

他们用B到创建他们的PDP-7小型机方案,虽然其中大多数是多一点玩具程序,机器已经十分受限制的硬件功能。此前采取的一项重要步骤是重写对B编译器B中本身。一个常见的​​引导步骤。

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.

这编译然后逐渐调整,通过称为NB(新泽西B)一种短暂的中间步骤开始类似C的PDP-11小型机是在于步骤器乐,给他们足够的空间,以改善语言和编译器。

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.

这篇关于第一个C编译器是如何写的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆