<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:微软雅黑
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
hi, I'm new to llvm and trying to convert some c files to bitcode and convert them back to c code.<br>my command line is pretty simple and verymuch like commands in "<a name="translatecxx">Can I use LLVM to convert C++ code to C code?</a>"<br>dragonegg_disable_version_check=1 llvm-gcc -emit-llvm test.c -o test -c<br>llc -march=c test -o testout.c<br><br>so I meant to compile test.c, which can be compiled and run by normal gcc, to bitcode, and use lcc -march=c to convert it back to c code.<br><br>but I recieve this:<br>llc: test:1:1: error: expected top-level entity<br>ELFX4(<br>             U����0��E��M��U��M��E��U���E��M�ȋU��ƒ����U��M��E��E��M��U�=��M��E��U�<br><br>so please could someone tell me how can I get the correct result?<br>Thanks<br>                                    </div></body>
</html>