[Mono-list] C# or IL to C cross compiler

Ben Houston ben@exocortex.org
Thu, 25 Apr 2002 03:39:39 -0400


> > On a related note.  For serious game development using C#
> > for core code, there needs to be a C# to C compiler that
> > would allow engine C# code to be compiled to C code that
> > could be run through the vectorizing and optimizing
> > compilers for the various platforms.
> 
> Or you could write your performance critical code in C or
> assembler. And P/Invoke it from the higher levels of code that do not
> need the performance.

I wrote a simple 3D engine using C# recently and found it to have pretty
decent performance:
  http://www.exocortex.org/3dengine

Although probably it would have gotten even better performance through
P/Invoke for the code lighting and rendering code.

-ben