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

Executable files #2345

Closed
dm-vev opened this issue Jul 23, 2022 · 2 comments
Closed

Executable files #2345

dm-vev opened this issue Jul 23, 2022 · 2 comments

Comments

@dm-vev
Copy link

dm-vev commented Jul 23, 2022

How can I run .dll (or some other format) files? And is it possible to run the application in this way on the one assembled on IronPython?

@ascpixi
Copy link
Contributor

ascpixi commented Jul 23, 2022

Running native DLL/EXE executable code requires you to create your own PE parser and some basic execution code using X# - a good example is this pull request from the Aura Operating System. As for running IL DLL files, no such thing is implemented in Cosmos out-of-the-box; however, you can write your own implementation of the CLR and a JIT-ter (or alternatively, an interpreter, which would be slower but easier to implement). There's an existing IL interpreter made by MishaTY, that includes a PE parser so that you can run DLL files directly.

However, if you're going for native execution, you will of course need to write executables that are native to your operating system, as system calls differ from OS to OS. The CLR doesn't have this issue, but you will have to implement a good chunk of the core library yourself.

@dm-vev
Copy link
Author

dm-vev commented Jul 23, 2022

Thank you, just 10 minutes ago I came across this very useful library. I think in current realities, this is the best way to make "apps".

@dm-vev dm-vev closed this as completed Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants