由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 世界上第一个编译器是怎么产生的?
相关主题
相对于machine code, assembly到底有啥改进?问一个C#问题
C -> assemblyJavaScript is Assembly Language for the Web (转载)
包子现金求助关于68k assembly问题recommend assembly code from gcc
Call assembly in c++ under linux拒了一个来面试的
[合集] who can help me with this assembly code?还有人用汇编语言写程序么
char *p = "string literal"; 和 char a[] = "string liter (转载)从统一数据格式和算法写作格式的角度讲,matlab还是很先进的
问几句汇编指令(assembly language)来看v8他爹用什么来搞v8
如何区分read page fault 和 write page faultsbt assembly conflict怎么解决好?
相关话题的讨论汇总
话题: opcodes话题: assemblers话题: 编译器话题: assembly话题: written
进入Programming版参与讨论
1 (共1页)
Z****a
发帖数: 5434
1
编译器也是程序,也要靠其他编译器将源码编译链接
那么世界上第一个编译器是怎么来的?
c*******9
发帖数: 9032
2
第一个程序猿是诗人拜伦的女儿。什么子程序循环都是她提出的。她认为编程和做女红
没什么区别。

【在 Z****a 的大作中提到】
: 编译器也是程序,也要靠其他编译器将源码编译链接
: 那么世界上第一个编译器是怎么来的?

g*********e
发帖数: 14401
3
是盖茨打孔纸条用机器码写出来的
n******7
发帖数: 12463
4
还是我比较厚道,花半分钟google了一下
http://stackoverflow.com/questions/1653649/how-was-the-first-co
Assembly instructions are (generally) a direct mapping to opcodes, which are
(multi-)byte values of machine code that can be directly interpreted by the
processor. It is quite possible to write a program in opcodes directly by
looking them up from a table (such as this one for the 6039 microprocessor,
for example) that lists them with the matching assembly instructions, and
hand-determining memory addresses/offsets for things like jumps.
The first programs were done in exactly this fashion - hand-written opcodes.
However, most of the time it's simpler to use an assembler to "compile"
assembly code, which automatically does these opcode lookups, as well as
being helpful in computing addresses/offsets for named jump labels, et
cetera.
The first assemblers were written by hand. Those assemblers could then be
used to assemble more complicated assemblers, which could then be use to
assemble compilers written for higher-level languages, and so on. This
process of iteratively writing the tools to simplify the creation of the
next set of tools is called (as mentioned by David Rabinowitz in his answer)
bootstrapping.
1 (共1页)
进入Programming版参与讨论
相关主题
sbt assembly conflict怎么解决好?[合集] who can help me with this assembly code?
Embedded C/assembly 有类似unit test的吗?char *p = "string literal"; 和 char a[] = "string liter (转载)
怎样能在网上找到计算机类的工作? (转载)问几句汇编指令(assembly language)
我总结的转行路线如何区分read page fault 和 write page fault
相对于machine code, assembly到底有啥改进?问一个C#问题
C -> assemblyJavaScript is Assembly Language for the Web (转载)
包子现金求助关于68k assembly问题recommend assembly code from gcc
Call assembly in c++ under linux拒了一个来面试的
相关话题的讨论汇总
话题: opcodes话题: assemblers话题: 编译器话题: assembly话题: written