←back to thread

517 points petercooper | 1 comments | | HN request time: 0s | source
Show context
TazeTSchnitzel ◴[] No.8559029[source]
Pretty damn impressive.

Though I must wonder: how complete is it? What does it and does it not support? It's at least complete enough to be self-hosting, but beyond that? The code doesn't use that much of C.

replies(2): >>8559058 #>>8559068 #
Lerc ◴[] No.8559068[source]
It's clear from the huge number of 'else if' statements that it doesn't support switch statements.

This is also a bit of a clue

    p = "char else enum if int return while "
    "open read close printf malloc memset memcmp exit main";
replies(1): >>8559087 #
1. TazeTSchnitzel ◴[] No.8559087[source]
Ah, the lack of struct explains why the compiler doesn't use any structs.