Hi, When I execute the command bellow: $llvm-dis Example.bc -o Example.ll I get the following wrong message: llvm-dis:Bitcode stream should be a multiple of 4 bytes in length Who can help me? 2010-04-07 yiqiuping1986 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100407/2cd7a437/attachment.html>
How did you generate Example.bc? It seems Example.bc is not a proper LLVM bytecode. On 7 April 2010 14:32, yiqiuping1986 <yiqiuping1986 at 126.com> wrote:> Hi, > > When I execute the command bellow: > $llvm-dis Example.bc -o Example.ll > I get the following wrong message: > llvm-dis:Bitcode stream should be a multiple of 4 bytes in length > > Who can help me? > > 2010-04-07 > ________________________________ > yiqiuping1986 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- Best regards, WANG Zheng
Hi,> When I execute the command bellow: > $llvm-dis Example.bc -o Example.ll > I get the following wrong message: > llvm-dis:Bitcode stream should be a multiple of 4 bytes in lengththis means that Example.bc does not contain bitcode. Ciao, Duncan.
I have found the source of the error, I forgot to add the -emit-llvm option when I generated Example.bc . Thank you very much! Best Regards! Qiuping 2010-04-07 yiqiuping1986 发件人: Zheng Wang 发送时间: 2010-04-07 21:55:56 收件人: yiqiuping1986 抄送: llvmdev 主题: Re: [LLVMdev] An error about bitcode How did you generate Example.bc? It seems Example.bc is not a proper LLVM bytecode. On 7 April 2010 14:32, yiqiuping1986 <yiqiuping1986 at 126.com> wrote:> Hi, > > When I execute the command bellow: > $llvm-dis Example.bc -o Example.ll > I get the following wrong message: > llvm-dis:Bitcode stream should be a multiple of 4 bytes in length > > Who can help me? > > 2010-04-07 > ________________________________ > yiqiuping1986 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- Best regards, WANG Zheng -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100407/3f5fd25d/attachment.html>
Maybe Matching Threads
- [LLVMdev] summer of code idea— update the SAFECode project to the new LLVM API
- [LLVMdev] Summer of Code ideas
- [LLVMdev] Summer of Code ideas
- [LLVMdev] summer of code idea— update the SAFECode project to the new LLVM API
- [LLVMdev] summer of code idea — checking bounds overflow bugs