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

Is it possible to build from .s textual assembly? #3074

Closed
trueinsider opened this issue Dec 12, 2014 · 7 comments
Closed

Is it possible to build from .s textual assembly? #3074

trueinsider opened this issue Dec 12, 2014 · 7 comments
Labels

Comments

@trueinsider
Copy link

Mono Full AOT support building .s through LLVM. Is to possible to use this so I can build .js from C#?

More info: http://www.mono-project.com/docs/advanced/mono-llvm/

@kripken
Copy link
Member

kripken commented Dec 12, 2014

emcc can accept LLVM IR in either binary or text format. It expects a familiar extension, though, so e.g. emcc a.ll for LLVM IR in text format, would work.

Are you porting Mono?

@trueinsider
Copy link
Author

Are you porting Mono?

What do you mean? We have large codebase on C# that needs to stay that way (because of Unity 3D). But also we need that same code on the server (Node.js). Currently, we use Edge.js, but compiling with emscripten would be much better.

@kripken
Copy link
Member

kripken commented Dec 15, 2014

I see. I think you will need to port the Mono runtime to do this, though? You can use mono-llvm to get your compiled C# code, but I assume it will call into various runtime methods implemented in Mono.

@trueinsider
Copy link
Author

But isn't Mono Full AOT already builds everything that my code needs and then I can run it without depending on Mono at all?

More info: http://www.mono-project.com/docs/advanced/aot/

@kripken
Copy link
Member

kripken commented Dec 15, 2014

I don't know, just guessing based on other VMs and runtimes I know.

@trueinsider
Copy link
Author

Well, anyway, Mono uses default LLVM but emscripten uses modified version. Need to hook it up somehow.

There is also info on bundling Mono to executable: http://www.mono-project.com/docs/advanced/runtime/

@stale
Copy link

stale bot commented Aug 31, 2019

This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

@stale stale bot added the wontfix label Aug 31, 2019
@stale stale bot closed this as completed Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants