tweag / asterius

DEPRECATED in favor of ghc wasm backend, see https://www.tweag.io/blog/2022-11-22-wasm-backend-merged-in-ghc
1.98k stars 55 forks source link

Unify Call/CallImport #881

Closed TerrorJack closed 2 years ago

TerrorJack commented 2 years ago

We used to have separate Call/CallImport in the IR, due to an ancient binaryen implementation detail, but we also handle CallImport a bit differently (CallImport targets not taken into account by gc-sections). This gets in our way of emitting objects compatible with C/C++ linking convention, thus this PR.