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

Programmer Humor

32247 readers
570 users here now

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

Rules:

founded 5 years ago
MODERATORS
1059
submitted 2 months ago* (last edited 2 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 2 months ago* (last edited 2 months ago) (3 children)

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

[–] [email protected] 10 points 2 months ago* (last edited 2 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 2 months ago (1 children)

Talking about bootstrap here?

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

And that's how you get the Thompson hack