[LLVMdev] Trouble using llvm tools

Tanu Sharma tanusharma_04 at yahoo.com
Tue Nov 30 10:07:29 PST 2004


Thanks for replying, 
 
Yes, I think too that the bytecode file is corrupted.
This is the file : 
-------------------------------------------------------------------------------------------------------------------------
^B^@^@��^C^A��^C^A��^C^B��^D^@^@^R^U^W��#^M^@^@^C^@^NThis">llvm^A^@^@^@�^A^@^@0������F^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 ^P^Hb^Q^A^A'>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^A������p^R^B^A^B������p^R��r^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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041130/f554bbce/attachment.html>


More information about the llvm-dev mailing list