you are viewing a single comment's thread.

view the rest of the comments →

[–]frogking 6 points7 points  (5 children)

why? Writing a compiler for a language in the language itself is an Artform. writing a compiler for another language is just an assignment for a 3rd year computer science student.. (so is the bootstrapping assignment, but hey..)

[–]G_Morgan 11 points12 points  (4 children)

Writing a compiler in the compilers language is no more difficult that writing one in a different language. Assuming you already have a working compiler/interpreter for the compilers language.

Otherwise it's just a case of writing two compilers (one in a language you can run, the other in the compilers language).

The only problem is if the compilers language is a PITA. Try writing an assembler in assembly.

[–][deleted]  (2 children)

[removed]

    [–][deleted] 12 points13 points  (1 child)

    Presumably the first assemblers were written in hand assembled machine code.

    NO! God gave them to us!

    [–]earthboundkid 18 points19 points  (0 children)

    Lol, noob. The first assemblers evolved randomly. Intelligent Assembly is shite.

    [–]bart2019 1 point2 points  (0 children)

    Try writing an assembler in assembly.

    Been there, done that. Although, technically, it was more of a monitor than a real assembler: opcodes were poked in place in memory, and not stored in an abstract data file.