3 ms·
I believe a toy Haskell compiler could be made with comparable effort to toy C compilers. Admittedly, I cannot find people making toy Haskell compilers. What m
by qznc 9y ago
I believe a toy Haskell compiler could be made with comparable effort to toy C compilers. Admittedly, I cannot find people making toy Haskell compilers.
What makes Haskell higher-level than C? Garbage collection does not really complicate the compiler if you just use BoehmGC.
You can use a simple subset of assembly instead of the full complicated set. Toy C compilers do this, e.g. by treating x86 as a stack machine.