Hi,<br><br>I have written a simple code to  insert putchar() function into IR. <br>It compiled well but when  I tried to run the generated .bc file with lli, its not showing <br>proper output.<br><br>Function *putchar_func = cast<Function>(M-><br>

    getOrInsertFunction("putchar", IntegerType::getInt32Ty(Context),<br>                        IntegerType::getInt32Ty(Context), NULL));<br><br>  Value *One = ConstantInt::get(Type::getInt32Ty(Context), 1);<br>

                                               <br>  CallInst *CallFibX1 = CallInst::Create(putchar_func, One, "fibx1", BB);<br>  CallFibX1->setTailCall();<br><br><br><br>Thanks and Regards,<br>Tarun Agrawal<br>