Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How I wrote a self-hosting C compiler in 40 days

Name: Anonymous 2016-11-26 17:17

Name: Anonymous 2016-11-26 17:29

Day 73

Name: Anonymous 2016-11-26 17:52

>>2
Day 40
Hooray! My compiler is now able to self-compile everything!

Name: Anonymous 2016-11-28 11:56

Particularly, I'd use yacc instead of writing a parser by hand and introduce an intermediate language early on

Name: Anonymous 2016-11-28 12:48

>>4
fuck off back to reddit/hackernews

Name: Anonymous 2016-11-28 13:34

Why would anyone build a source distribution server into their compiler?

Name: Anonymous 2016-11-28 14:59

I would make it output scheme.

Name: Anonymous 2016-11-28 15:04

>>7
that's a good start. I'd make it output Scheme, then I'd compile Scheme to C with Chicken and then compile C to Scheme again. how many cycles until it breaks?

Name: Anonymous 2016-11-28 15:10

>>8
If you're doing it right, it will just toggle back and forth.

Name: Anonymous 2016-11-28 15:25

>>9
sure thing, but how often do you see reversible 1:1 translation from one language to another? at best every cycle will add a lot of bloat to emulate the behavior of the source language idioms inside the target language.

Name: Anonymous 2016-11-28 17:00

>>6
what did this post mean

Name: Anonymous 2016-11-28 17:37

Jesus said "I will rebuild this temple in three days." I could make a compiler in 3 days.

Name: Anonymous 2016-11-28 18:28

Pros of a self-hosted compiler:
⚫You have full control over your compiler, including its layout, search engine optimization, advertising revenue, additional functions, and more.
⚫You can install custom themes to brand your compiler.
⚫You have complete access to your backend files, which allows you to make any necessary code changes.
⚫Using a third-party host usually costs only a few dollars per month.

Cons of a self-hosted compiler:
⚫It requires an initial investment.
⚫It can be intimidating to new programmers.

Name: Anonymous 2016-11-28 18:45

>>5
It's a quote from the link.

Name: Anonymous 2016-11-28 19:26

>>13
HIBT?

Name: Anonymous 2016-11-28 22:31

>>13
But can it also run on my Kubernetes Kluster KloudTM?

Name: Anonymous 2016-11-29 7:37

>>13
IHNBT

Don't change these.
Name: Email:
Entire Thread Thread List