[LLVMdev] Trouble using llvm tools
Reid Spencer
reid at x10sys.com
Tue Nov 30 10:13:37 PST 2004
Could you send the bytecode file as an attachment, please?
Thanks,
Reid.
On Tue, 2004-11-30 at 10:07, Tanu Sharma wrote:
> Thanks for replying,
>
> Yes, I think too that the bytecode file is corrupted.
> This is the file :
> -------------------------------------------------------------------------------------------------------------------------
> llvm^A^@^@^@^A^@^@0F^E^@^@^O^P^N^O^C^X^P^P^O^C^U^P^A^P^T^P^C^M^G^B^S^@^P^^@^A^G^P^X^M^G^@^N^G^[^@^M^@^@^P^Z<85>^B^@^@^C^A^C^A^C^B^D^@^@^R^U^W#^M^@^@^C^@^NThis is main function
> ^@^PCalling sub function^@^PThis is sub
> function^@^A^A^@^A^A^G^@^B^C^S^C^Y^A^M^@^G^@^G^C^Y^A^O^@^G^@^G^C^Y^B^O^@^G^@^G"^@^@^@^@"^@^@^@^@^B^Q^@^@^@^G^F^@^@]^Q^P^@^K<8c>^P^Hb^Q^A^A ^L ^@p^R^B^A^Ap^R^B^A^Bp^Rr^U^A^A^E^G^@^@^H^@^@^@^A^A^B^Gtmp.1.i^C^G^B^Etmp.0^D^Gtmp.0.i^C^Etmp.2^C^L^L__main.entry^A endif.0.i^@^Eentry$^M^@^@^B^Y^Nstruct..TorRec^Y^Mstruct.TorRecB^O^A^F.str_2^B^F.str_3^A^R^A^Fprintf^A^U^A^Dexit^A^W^A^Dmain^A^M^A^F.str_1^A^Q^A^OInitialized.0__
>
> -------------------------------------------------------------------------------
>
> I generated it like this:
> $llvmgcc prog.c -o prog
>
> Thanks
> Tanu
>
> Chris Lattner <sabre at nondot.org> wrote:
> On Tue, 30 Nov 2004, Tanu Sharma wrote:
>
> > I have trouble using the llvm tools.Some of the errors are :
> >
> > $ llvm-dis prog.bc
> > $ llvm-dis: Invalid Top Level Block Length! Type:1, Size:456
> (Vers=0, Pos=12)
>
> Can you explain how you generated this bytecode file? It looks
> corrupted
> or something. Also, can you send the actual bytecode file
> itself?
>
> Thanks!
>
> -Chris
>
>
> > -------------------------------------
> >
> > $ extract -o=outprog prog.bc
> > $ extract: bytecode didn't read correctly.
> >
> > Where am I doing wrong ?I wish to get human readable form of
> my bytecode file.The tool giving similar error.
> >
> > Thanks
> >
> > Tanu
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
>
> -Chris
> --
> http://nondot.org/sabre/
> http://llvm.cs.uiuc.edu/
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> ______________________________________________________________________
> Do you Yahoo!?
> All your favorites on one personal page Try My Yahoo!
>
> ______________________________________________________________________
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041130/3aa80a33/attachment.sig>
More information about the llvm-dev
mailing list