196
you are viewing a single comment's thread
view the rest of the comments
[-] nychtelios@rlyeh.icu 20 points 2 years ago

Actually compilers are more complex than operative systems, and incredibly they are built using compilers.

[-] cdnalsi@lemmy.world 4 points 2 years ago

Compilers are built using compilers?

[-] phorq@lemmy.ml 12 points 2 years ago

Yup, C is written in C. You bootstrap using a compiler written in another language until your language is complete enough to write its own compiler.

[-] Martineski@lemmy.fmhy.ml 3 points 2 years ago

Alright, that's kinda crazy lol.

[-] nychtelios@rlyeh.icu 2 points 2 years ago

gcc and clang are open source, you can read their source code whenever you want!

[-] pewpew@feddit.it 3 points 2 years ago

I belive you. I made a basic OS in around a month and now i'm starting a C compiler, I think I underestimated it a bit

this post was submitted on 26 Jun 2023
196 points (100.0% liked)

Programmer Humor

33584 readers
29 users here now

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

Rules:

founded 5 years ago
MODERATORS