this post was submitted on 03 Aug 2024
1068 points (99.1% liked)

Programmer Humor

32692 readers
390 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
1068
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 4 months ago* (last edited 4 months ago) (3 children)

Only the most very basic compilers. C compilers are in C mainly.

[–] [email protected] 10 points 4 months ago* (last edited 4 months ago)

Not the first C compiler obviously. According to this Stack Overflow post, BCPL* begat B, which begat C. Language self-hosting is pretty fascinating.

*Perhaps BCPL was originally written in assembly; I’m not certain: https://github.com/SergeGris/BCPL-compiler

[–] [email protected] 7 points 4 months ago (1 children)

Talking about bootstrap here?

[–] [email protected] 1 points 4 months ago
[–] [email protected] 2 points 4 months ago

And that's how you get the Thompson hack