由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 正看一本叫code complete的书,有一句话关于c不明白
相关主题
哪位大牛简单说说compiler里的bootstrap是干啥用的?a string define question (c++)
Unix在计算机历史上的传奇(转载)[合集] 6个变态的C语言写的Hello World (ZZ)
C语言的变量都一定要放在stack上吗?C语言,大家一般用什么编译器?
Looks like 王垠 was right about Google culture写一个C语言的编译器大概要多少时间?
*** help needed! on MATLAB GUI ***王垠:程序设计里的“小聪明”(ZZ)
感觉c挺有一丝的嘛[bssd] Neural network as a programming language
现在学LLVM有没有前途请推荐一本经典的讲编译器的书
世界上第一个编译器是怎么产生的?c的小问题
相关话题的讨论汇总
话题: compiler话题: chinese话题: reference话题: 正看话题: copmiler
进入Programming版参与讨论
1 (共1页)
f*z
发帖数: 421
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, 还是其他什么东西?
f*z
发帖数: 421
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, 还是其他什么东西?

c*****t
发帖数: 1879
3
The second part is a urban legend. Ken Thompson merely talked about the
potential in his Turing Award acceptance speech. So stop spreading it
any longer.
http://en.wikipedia.org/wiki/Ken_Thompson#Turing_Award
f*z
发帖数: 421
4
收到。谢了
S*****n
发帖数: 227
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, 还是其他什么东西?

c*****t
发帖数: 1879
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
g***y
发帖数: 764
7
re 那哥们绕来绕去的 也不知道肚子里到底有料没有

思;
D****g
发帖数: 2860
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, 还是其他什么东西?

g*****g
发帖数: 34805
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, 还是其他什么东西?

d******y
发帖数: 1039
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

f*z
发帖数: 421
11
模模糊糊明白了一点。
谢谢大家。
半路出家就是不好。

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

1 (共1页)
进入Programming版参与讨论
相关主题
c的小问题*** help needed! on MATLAB GUI ***
面试被问到G++和GCC编译器的关系感觉c挺有一丝的嘛
[合集] VisualC++的compiler是不是也不是free的? (转载)现在学LLVM有没有前途
template 类的继承问题世界上第一个编译器是怎么产生的?
哪位大牛简单说说compiler里的bootstrap是干啥用的?a string define question (c++)
Unix在计算机历史上的传奇(转载)[合集] 6个变态的C语言写的Hello World (ZZ)
C语言的变量都一定要放在stack上吗?C语言,大家一般用什么编译器?
Looks like 王垠 was right about Google culture写一个C语言的编译器大概要多少时间?
相关话题的讨论汇总
话题: compiler话题: chinese话题: reference话题: 正看话题: copmiler