Wrong code emitted in private roundtrip test

May 22, 2010 at 11:27 AM

For sample project, see www.terwoord.nl/CCIRepro.zip

 

Ultimate goal of my CCI usage, is to make a postcompiler of some sorts. My initial tests with a simple roundtrip (read, write back) fail, because the output assembly doesnt verify using peverify.

Please note, that i'm not claiming it's a bug in the cci software, might very well be a bug in my usage of it.

 

Please give me some hints on what to do..

 

Regards,

Matthijs ter Woord

May 30, 2010 at 5:41 PM

Is there a reason why you're creating your own host class?  There is a sample project in Samples\PeToPeViaCodeModel that demonstrates a roundtrip with an empty mutator, and its output peverifies without errors.  Maybe start from there?