could you possibly program a OS in C#??
Or would i have to use a mix of ASM, C++ and C#??
C#
RE:C#
>On 2002-04-03 05:26:52, The Legend wrote:
>>On 2002-04-03 03:32:43, e wrote:
>>could you possibly program a OS in C#??
>>
>>Or would i have to use a mix of ASM, C++ and C#??
>As long as there are no real compilers for C#
>(only managed code until now, right?), you'll need
>a mix of ASM, C++ and C# ...
Yeah, but you can write "unsafe" code in these
compilers, right? I would suspect it would be
possible to make a OS with C# mixed with a
little asm for low level processor specific
stuff.
It might get messy though... depending on how '
intuitive it is to write "unsafe" code. I don't
know to much about c#, unfortunately. I do know,
however, that pointers are "unsafe" and so you'd
definitly have a lot of this unsafe code.
Why code in C#, though? I'm curious... 'cuz you
couldn't be able to use any of its advantages
over C++, would you (in an OS, I mean)? The
framework is out (unless you want to port the
entire thing), and I would think MSIL would be
more an annoyance then anything... perhaps it
would make your code more portable... or perhaps
it would make your code more reliant on the
framework. Perhaps I just find it hard to put
faith into something so blatantly not open source
Anyway, let me know your ideas...
Jeff
>>On 2002-04-03 03:32:43, e wrote:
>>could you possibly program a OS in C#??
>>
>>Or would i have to use a mix of ASM, C++ and C#??
>As long as there are no real compilers for C#
>(only managed code until now, right?), you'll need
>a mix of ASM, C++ and C# ...
Yeah, but you can write "unsafe" code in these
compilers, right? I would suspect it would be
possible to make a OS with C# mixed with a
little asm for low level processor specific
stuff.
It might get messy though... depending on how '
intuitive it is to write "unsafe" code. I don't
know to much about c#, unfortunately. I do know,
however, that pointers are "unsafe" and so you'd
definitly have a lot of this unsafe code.
Why code in C#, though? I'm curious... 'cuz you
couldn't be able to use any of its advantages
over C++, would you (in an OS, I mean)? The
framework is out (unless you want to port the
entire thing), and I would think MSIL would be
more an annoyance then anything... perhaps it
would make your code more portable... or perhaps
it would make your code more reliant on the
framework. Perhaps I just find it hard to put
faith into something so blatantly not open source
Anyway, let me know your ideas...
Jeff