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

Programmer Humor

32562 readers
392 users here now

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

Rules:

founded 5 years ago
MODERATORS
1080
submitted 3 months ago* (last edited 3 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] 14 points 3 months ago* (last edited 3 months ago) (3 children)

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

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

Talking about bootstrap here?

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

And that's how you get the Thompson hack