tekknolagi / stackx

MIT License
2 stars 0 forks source link

Code generation #2

Open tekknolagi opened 7 years ago

tekknolagi commented 7 years ago

We need to decide how we want to do that, what intermediate transforms we want to have, etc.

KCreate commented 7 years ago

I'd suggest not doing any (except super trivial ones) optimisations at the beginning. We should however build the compiler in a way that would allow an arbitrary amount of passes of any kind later on.

I'm thinking of things like Constant-folding, dead-code elimination, function inlining etc.

tekknolagi commented 7 years ago

I like the arbitrary passes compiler, and I like not doing any optimization right now.