Is there a way to download code written in a managed language?

This question says it all. Can I compile C # to my own code and load it? I know about Cosmos and Singularity, but I was wondering if there are more modern methods or tools. Thanks.

+6
source share
3 answers

Obviously, you can compile your own code with Mono:

http://www.mono-project.com/Mono:Runtime#Ahead-of-time_compilation

However, you cannot write an OS with this. It is impossible to write an entire OS in C #, Cosmos and Singularity will have parts that are not code driven.

Or, of course, you can set your boot code at Windows startup. .NET applications will work very well once Windows boots up to the login and logout screen.

+1
source

What exactly do you mean by "boot it" ... If you mean "booting on the computer as an OS", you will need to configure the bootloader and overwrite most of the C # functions. You will also need to configure all machine-specific functions from a lower-level language (assembly / c [++] /, etc.). In principle, there is no way to download it yourself without a significant amount of work.

+1
source

One option is to create a Windows service that is configured to run from the system. I believe that there are other ways to achieve this, but it may be "the easiest."

0
source

Source: https://habr.com/ru/post/890566/


All Articles