<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 15, 2016, at 4:57 PM, Muhammad Umar Janjua via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: verdana, helvetica, sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1455583077809_4239" class=""> At some point in 2005/6, I was using an older version of llvm-gcc.</div><div id="yui_3_16_0_1_1455583077809_4235" dir="ltr" class="">I generated files with bytecode using llvm tools at that time.</div><div id="yui_3_16_0_1_1455583077809_4236" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4238" dir="ltr" class="">It was GNU C version 3.4-llvm 20030924 (experimental) (i686-pc-linux-gnu)<br id="yui_3_16_0_1_1455583077809_4233" class="">; compiled by GNU C version 3.4.0.</div></div></div></div></blockquote><div><br class=""></div><div>As you can see from <a href="http://llvm.org/releases/" class="">http://llvm.org/releases/</a> ; the version 3.4 was released in 2014. Back in 2005/2006 it seems that the version was 1.X. </div><div>The message you see with 3.4 means probably that this version of llvm-gcc was compiled with (against?) gcc-3.4.</div><div><br class=""></div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: verdana, helvetica, sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1455583077809_4255" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4254" dir="ltr" class="">I somehow lost these old tools. But after a decade, I still want to disassemble these old result files to see the code.</div></div></div></div></blockquote><div><br class=""></div><div>You'll have to use an older version of LLVM to read these files. </div><div>Start with version 3.0, and if it does not work you can try 2.0, and then try to pinpoint the exact 1.x release if needed.</div><div>(I don't know if there was a record with the version in the bitcode at that time?)</div><div><br class=""></div><div>-- </div><div>Mehdi</div><div><br class=""></div><div><br class=""></div><div class=""><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: verdana, helvetica, sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1455583077809_4262" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4268" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4270" dir="ltr" class=""> So I downloaded some windows llvm tools to disassemble a bytecode file into .ll file to view the disassembly code.</div><div id="yui_3_16_0_1_1455583077809_4269" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4282" class="">However, I am seeing an invalid bitcode signature error. </div><div id="yui_3_16_0_1_1455583077809_4280" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4307" class="">Now there could be some changes in the format that the newer version insists on.</div><div id="yui_3_16_0_1_1455583077809_4308" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4309" class="">Could some one help me with llvm-dis for windows that can disassemble the attached c6.bc file?</div><div id="yui_3_16_0_1_1455583077809_4310" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4311" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4281" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4195" class=""><br class=""></div><div id="yui_3_16_0_1_1455583077809_4194" class="">C:\work\llvm-3.4-tools-windows>llvm-dis c:\ImportantDocs\experiments\c6.bc<br id="yui_3_16_0_1_1455583077809_4150" class=""><strong class="">llvm-dis: Invalid bitcode signature</strong></div><div id="yui_3_16_0_1_1455583077809_4154" class=""><br id="yui_3_16_0_1_1455583077809_4155" class=""></div><div id="yui_3_16_0_1_1455583077809_4157" class="">C:\work\llvm-3.4-tools-windows>llvm-dis -help<br id="yui_3_16_0_1_1455583077809_4159" class="">OVERVIEW: llvm .bc -> .ll disassembler</div><div id="yui_3_16_0_1_1455583077809_4160" class="">USAGE: llvm-dis [options] <input bitcode></div><div id="yui_3_16_0_1_1455583077809_4161" class="">OPTIONS:<br id="yui_3_16_0_1_1455583077809_4162" class=""> -f - Enable binary output on terminals<br id="yui_3_16_0_1_1455583077809_4163" class=""> -help - Display available options (-help-hidden for more)<br id="yui_3_16_0_1_1455583077809_4164" class=""> -o=<filename> - Override output filename<br id="yui_3_16_0_1_1455583077809_4165" class=""> -print-after-all - Print IR after each pass<br id="yui_3_16_0_1_1455583077809_4166" class=""> -print-before-all - Print IR before each pass<br id="yui_3_16_0_1_1455583077809_4167" class=""> -show-annotations - Add informational comments to the .ll file<br id="yui_3_16_0_1_1455583077809_4168" class=""> -time-passes - Time each pass, printing elapsed time for each on exit<br id="yui_3_16_0_1_1455583077809_4169" class=""> -version - Display the version of this program</div><div id="yui_3_16_0_1_1455583077809_4170" dir="ltr" class="">C:\work\llvm-3.4-tools-windows>llvm-dis -version<br id="yui_3_16_0_1_1455583077809_4171" class="">LLVM (<a href="http://llvm.org/" class="">http://llvm.org/</a>):<br id="yui_3_16_0_1_1455583077809_4172" class=""> LLVM version 3.4svn<br id="yui_3_16_0_1_1455583077809_4173" class=""> DEBUG build.<br id="yui_3_16_0_1_1455583077809_4174" class=""> Built Feb 24 2014 (21:50:43).<br id="yui_3_16_0_1_1455583077809_4175" class=""> Default target: i686-pc-win32<br id="yui_3_16_0_1_1455583077809_4176" class=""> Host CPU: corei7-avx</div><div id="yui_3_16_0_1_1455583077809_4143" class=""><br class=""></div></div></div><span id="cid:b7ca8b6c-8a5f-80fe-7588-a498e5a62806@yahoo.com"><c6.bc></span>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>