MSIL to native code ... is posible with NGEN?  
Author Message
vtortola





PostPosted: Common Language Runtime, MSIL to native code ... is posible with NGEN? Top

Hello!

I find the Native Image Generator , and i want ask if this tool can convert MSIL code to win32 native code.

Somebody use it What results

I read that is for avoid de JIT work each time but ... can I create a native and redistributable win32 exe with it I don't like send MSIL exes to my clients ... y can buy a obfuscator but ... i prefer something more ... closed :P

Thanks in advance.

Regards.



.NET Development21  
 
 
nobugz





PostPosted: Common Language Runtime, MSIL to native code ... is posible with NGEN? Top

Two reasons this won't work: you still need the original assembly to be able to run the program. And NGEN can only be run on the client PC.


 
 
V.Tortola





PostPosted: Common Language Runtime, MSIL to native code ... is posible with NGEN? Top

humm ... thanks.

I don't understand why Microsoft don't provide some tool for protect our work, and i must spend my money in a expensive obfuscator solution of third party :( . However obfuscation isn't a real solution, only try to hide parts of MSIL code.

Yesterday i view a decompiler, than take MSIL code and give you C# o VB.NET code. I think that i will send the C# source code to my customers, thus they can read my funny code coments too :(

This is fustrating. I think that in my next project if i have time ... start with Java, that can compile to a native code.

Regards.



 
 
jdt1234





PostPosted: Common Language Runtime, MSIL to native code ... is posible with NGEN? Top

Last time I checked, Java doesn't compile to native code either - just bytecode. You would still have to use a third party tool to compile to native code as well.

 
 
nobugz





PostPosted: Common Language Runtime, MSIL to native code ... is posible with NGEN? Top

And since it had such a head-start, Java also has the best de-compilers available.