zetah11 / zippy

a smol functional/imperative programming language
MIT License
2 stars 0 forks source link

c backend #10

Closed zetah11 closed 2 years ago

zetah11 commented 2 years ago

Writing my own x64 backend may have been taking on too much to chew (#8, #4, #6, ...). The primary reason I went with a custom backend instead of something like a C-based one is because I eventually want to fiddle with a segmented stack-based approach to compiling effect handlers.

However, I think starting out with a C backend may be a wiser choice than trying to force one I don't have a great mental model of to work. Apart from the fact that compiling to C can be done (I suspect) much more easily than to x64, it would also give me easier FFI immediately.