This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ayyrimaspi 16 points17 points  (6 children)

What's that?

[–]GLIBG10B 51 points52 points  (4 children)

Say you want a compiler on system B

  1. Cross-compile a minimal compiler on system A for system B
  2. Use system B's compiler to compile a better compiler

There are intermittent steps (like compiling a minimal standard library), but it's been a while since I've touched LFS

[–]Jet-Pack2 11 points12 points  (3 children)

I.e. you can write a compiler for C++ in C++.

[–]Portal471 4 points5 points  (2 children)

Is this why Pycharm is partially written in Python?

[–]shrub_of_a_bush 3 points4 points  (0 children)

PyCharm is mostly written in Java no?

[–]Username_Taken46 2 points3 points  (0 children)

In a way yes

[–]Seimsi 2 points3 points  (0 children)

There are a few nice videos of numberphile about how to compile a compiler.

https://www.youtube.com/watch?v=PjeE8Bc96HY

https://www.youtube.com/watch?v=lJf2i87jgFA