0

Ok, so i've made a bootloader in assembly but I think its very hard to write the operating system (the kernel) in assembly so I wonder if it is possible to write it in C#?
The question is: Can you write a C# console application and convert it to .bin or some other format which you can rawwrite to a floppy and then load it from the bootloader?

Thanks in advance

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by ddanbe
0

Normally you cannot.
C# is not compiled to native assembly by the compiler but to IL (Intermediate Language) This IL is translated by a JIT(Just In Time) compiler in instructions a computer can understand. I think this scheme was first implemented by Java. It makes your code as portable as possible. But as you see it has some drawbacks, use C or C++ for what you are trying to do. Succes!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.