Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin -> WASM -> C++ #1696

Open
soywiz opened this issue Jun 14, 2023 · 1 comment
Open

Kotlin -> WASM -> C++ #1696

soywiz opened this issue Jun 14, 2023 · 1 comment

Comments

@soywiz
Copy link
Member

soywiz commented Jun 14, 2023

We want to generate C++ code that we can use to compile to unsupported platforms like Playstation, Xbox or homebrew platforms.

We can benefit from Kotlin targetting WASM.

It should be possible to start doing stuff by using WasmImport:

https://youtrack.jetbrains.com/issue/KT-55589/Basic-support-of-WASI

We can try to use wasm2c:

https://github.com/WebAssembly/wabt/blob/main/wasm2c/README.md

Alternatively we can continue work here:

https://github.com/korlibs/wasm2kt/

And benefit from having the AST to do something personalized to our specific use-case. Eventually though using a standard wasm2c would benefit the whole community. So might be worth try to contribute there.

@soywiz soywiz added this to Korlibs Jun 14, 2023
@soywiz soywiz converted this from a draft issue Jun 14, 2023
@soywiz
Copy link
Member Author

soywiz commented Dec 31, 2023

WebAssembly/wabt#2348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pending
Development

No branches or pull requests

1 participant