<div>Hi all,</div><div><br></div><div>I am working on my Master's project in security and for this I need to do following things : </div><div><br></div><div>1. I have a IR bytecode of the main program. I want to insert dead code from other source files (e.g. cygwin files or the Linux files) in main program's IR byte code. </div>

<div>2. In order to insert code, I can try following two ways :</div><div>   (i) I have observed that these IR bytecode files are just like a text file and they have fixed format. Using file operations, we can modify IR byte code of the first file by inserting the IR byte code from other files.  </div>


<div>   (ii) Second approach is to use LLC Tool to generate c++ code of second IR byte code. Then use generated c++ code and insert into the first IR byte code. Write the optimizer pass on first IR byte code and add the instructions from generated c++ code. Get the modified IR bytecode of the first program.</div>


<div><br></div><div>Which approach is better and are there any other ways which I can use?</div><div><br></div><div>Thanks,</div><div>Teja</div>