Hello! Correct me if I'm wrong: You have written some code in C# (or
other .NET language), compiled it to an assembly, and you want to
convert the assembly from IL into C so that it can be recompiled for
low-end devices. Yes?

One caveat with this approach is that IL assumes a garbage collector,
so the code has no information in it about freeing objects that you no
longer need. But you will (almost certainly) need this information in
a C-language version. You'll need to write some kind of dummy Free()
function which does nothing in C#, but which frees structures in C.

It will also be much easier to convert from a parse tree (or CodeDOM)
than from IL. There must be some IL-to-CodeDOM out there (Reflector
must use such a thing); does anyone know of one available for Cecil?
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to