Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How did they compile the first compiler ever?

Name: Anonymous 2010-08-11 7:33

This is something I've always wondered.

Name: Anonymous 2010-08-11 7:44

LISP

Name: Anonymous 2010-08-11 7:44

by hand ?

Name: Anonymous 2010-08-11 7:57

Redundant thread.

Name: Anonymous 2010-08-11 10:53

Subsequently, several experimental compilers were developed. The first compiler was written by Grace Hopper, in 1952, for the A-0 programming language. The FORTRAN team led by John Backus at IBM is generally credited as having introduced the first complete compiler, in 1957. COBOL was an early language to be compiled on multiple architectures, in 1960.
Wikipedia, "Compiler"

The early compilers were written in assembly (like all good programs should be) and the first compiler that could compile its own source code was written in Lisp.

Name: Anonymous 2010-08-11 11:25

How did they write the first assembler ever?

Name: Anonymous 2010-08-11 11:40

>>6
vacuum tubes

Name: Anonymous 2010-08-11 13:59

How did the write the first vacuum tubes ever?

Name: Anonymous 2010-08-11 14:07

>>1
If you don't have a compiler you can write one in assembler.  If you don't have an assembler, you write an assembler in assembler and then translate it into machine code by hand.  Early languages were simple enough to parse and compile that it wasn't a huge problem to write them in assembler, though the code they generated was fairly large and slow.  When developing a new (not backwards compatible) architecture, such as Itanium or PowerPC, one of the first things they'd do is cross compile a compiler that could run on the new architecture.

This is just a specific case of "bootstrapping" a compiler.  Normally you'd write a C compiler in C.  But if you don't have a C compiler, then you write one in assembler -- but it only has to be good enough to compile the C compiler.  It's basically a throw-away compiler.

Name: Anonymous 2010-08-11 16:49

>>8
The human brain

Name: Anonymous 2010-08-11 16:52

>>10
Which was created by Jesus

Name: Anonymous 2010-08-11 16:59

>>11
0/10

Name: Anonymous 2010-08-11 18:38

>>12
Hello, Xarn.

Name: Anonymous 2010-08-11 19:04

>>13
Look at the recent state of /prog/. Do you really think Xarn still posts here?

Name: Anonymous 2010-08-11 19:17

>>14
Yes. It's not hard to believe if you look at the quality (or lack thereof) of his recent posts.

Name: Anonymous 2010-08-12 0:39

Solder shit together!

Name: Anonymous 2010-08-12 2:24

>>6
How did they write the first assembler ever?
Pen and paper, I suppose.

Name: Anonymous 2010-08-12 2:58

>>17
I've actually done that before. It kind of sucked.

Name: Anonymous 2010-08-12 3:51

>>18
I thought it was really cool when I did it, at least for the first 15 minutes or so.  After that it got boring and I went back to the PC.

I hope they used a typewriter.

Name: Anonymous 2010-11-14 11:10

Name: Anonymous 2011-02-02 22:42

Name: Anonymous 2011-02-04 12:21

Don't change these.
Name: Email:
Entire Thread Thread List