trietptm / facile-api

Automatically exported from code.google.com/p/facile-api
0 stars 0 forks source link

Complete Round Tripping Ability #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Round-Tripping is the ability to decompile and compile the same program again.

To achieve this I'm using the already present ILAsmRenderer, which is not fully 
ILAsm conform (note: next to ildasm I haven't seen a decompiler, which produces 
conform IL code).

Steps to reach round tripping:
1. Update ILAsmRender syntax (here especially the custom attributes are tricky)
2. Manage embedded resources (no concpet so far!)
3. Create unit test which runs ilasm after facile -il and listen to the output
4. Maybe create another unit test which decompiles the round-tripped file again 
and compare to the first one

Original issue reported on code.google.com by tom.smar...@gmail.com on 23 Oct 2011 at 2:52

GoogleCodeExporter commented 9 years ago
ILAsmRenderer already improved a bit, most of the changes are not in the 
repository yet... I have to do some more cleanup before.

1: There is a clear backup solution for this (as done by ILDasm): Use the 
binary representation of the custom attribute. I already implmented some test 
code for this backup solution, which works perfectly.
2: Still no progress on this :(
3,4: Open as well

Original comment by tom.smar...@gmail.com on 23 May 2012 at 12:43