Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Is there any Command-Line or programmatically way to convert any type of exe file to IL ?!

I know it is possible cuz I saw several programs that show me IL codes .

Note : I do this for .Net Framework via ILDASM.EXE (A tool of visual studio) but I'm not able to do the same work for the exe files which don't have CLR header(similarly it is only a way for convert .Net assemblies !) .

thank u.
Posted
Comments
Tomas Takac 9-Mar-15 7:02am    
You can only disassemble .NET assemblies into IL code, not any .exe or .dll. What are the "several programs that show IL codes"?
MohammadSina Karvandi 9-Mar-15 7:09am    
Hex ray IDA
Tomas Takac 9-Mar-15 7:19am    
After a quick look in their documentation I doubt it can do that but maybe I missed something.
Richard MacCutchan 9-Mar-15 7:16am    
Non .NET executables do not use IL, they are compiled to native instruction codes.
MohammadSina Karvandi 9-Mar-15 7:31am    
So , You mean that IDA show me the native instruction of all non .Net executable or it is sth else ?!

1 solution

Any .NET executable or Library is, at first, compiled into IL (Intermediate Language).
So there is no need to "convert" it to IL code.

The first time the executable/dll is launched, the JIT (Just In Time) compiler translates that to platform-specific assembly code.

You definitely cannot obtain some IL code for an executable that has no CLR header.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Mar-15 8:56am    
5ed. You cannot obtain something which does not exist in nature.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900