Redian新闻
>
正看一本叫code complete的书,有一句话关于c不明白
avatar
正看一本叫code complete的书,有一句话关于c不明白# Programming - 葵花宝典
f*z
1
"C was developed in the 1970s at Bell Labs. It was originally designed for
and used on the DEC PDP-11—whose operating system, C compiler, and UNIX
application programs were all written in C."
要是C compiler都是用C写的,那些compiler的原码使用什么编译的?上文的C
copmiler是通常我们说的compiler, 还是其他什么东西?
avatar
f*z
2
是不是已经有一个OS和compiler,然后基于他们再用C为这个新机器写一个OS和
compipler。

【在 f*z 的大作中提到】
: "C was developed in the 1970s at Bell Labs. It was originally designed for
: and used on the DEC PDP-11—whose operating system, C compiler, and UNIX
: application programs were all written in C."
: 要是C compiler都是用C写的,那些compiler的原码使用什么编译的?上文的C
: copmiler是通常我们说的compiler, 还是其他什么东西?

avatar
f*z
4
收到。谢了
avatar
S*n
5
交叉编译。

【在 f*z 的大作中提到】
: "C was developed in the 1970s at Bell Labs. It was originally designed for
: and used on the DEC PDP-11—whose operating system, C compiler, and UNIX
: application programs were all written in C."
: 要是C compiler都是用C写的,那些compiler的原码使用什么编译的?上文的C
: copmiler是通常我们说的compiler, 还是其他什么东西?

avatar
c*t
6
Well, reading comprehension for the lose ^_^ Please read the Chinese
version and tell me they mean the same. No wonder there is a term
called Chinese whisper.
Also, the text has no reference. While Wikipedia is a good place
to look up things. Taking text that has no reference as "truth"
is silly.
Bottom line: if you can find the actual reference, I will give you
credit. Regardless, the Chinese version is just too imaginary.

the
avatar
g*y
7
re 那哥们绕来绕去的 也不知道肚子里到底有料没有

思;
avatar
D*g
8
for every new language, you always need some means of bootstrapping to
create a compiler written in its own.

【在 f*z 的大作中提到】
: "C was developed in the 1970s at Bell Labs. It was originally designed for
: and used on the DEC PDP-11—whose operating system, C compiler, and UNIX
: application programs were all written in C."
: 要是C compiler都是用C写的,那些compiler的原码使用什么编译的?上文的C
: copmiler是通常我们说的compiler, 还是其他什么东西?

avatar
g*g
9
写一个简单的汇编编译器,可以编译一些简单的C代码,
你可以认为是一个简化的C语言,用这个简化的C语言,
可以写出可以编译复杂一点的C语言的编译器,层层
递进上去。几个版本之后最初的汇编编译器永远用不上了。
以后所有的其他语言也不再需要。

【在 f*z 的大作中提到】
: "C was developed in the 1970s at Bell Labs. It was originally designed for
: and used on the DEC PDP-11—whose operating system, C compiler, and UNIX
: application programs were all written in C."
: 要是C compiler都是用C写的,那些compiler的原码使用什么编译的?上文的C
: copmiler是通常我们说的compiler, 还是其他什么东西?

avatar
d*y
10
快赶上唐僧了

【在 c*****t 的大作中提到】
: Well, reading comprehension for the lose ^_^ Please read the Chinese
: version and tell me they mean the same. No wonder there is a term
: called Chinese whisper.
: Also, the text has no reference. While Wikipedia is a good place
: to look up things. Taking text that has no reference as "truth"
: is silly.
: Bottom line: if you can find the actual reference, I will give you
: credit. Regardless, the Chinese version is just too imaginary.
:
: the

avatar
f*z
11
模模糊糊明白了一点。
谢谢大家。
半路出家就是不好。

【在 g*****g 的大作中提到】
: 写一个简单的汇编编译器,可以编译一些简单的C代码,
: 你可以认为是一个简化的C语言,用这个简化的C语言,
: 可以写出可以编译复杂一点的C语言的编译器,层层
: 递进上去。几个版本之后最初的汇编编译器永远用不上了。
: 以后所有的其他语言也不再需要。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。