<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi<br><br>I'm trying to compile the "bh" C program from the Olden benchmark to one bc file.<br><br># compile source files into an LLVM bitcode file<br>llvm-gcc -emit-llvm -c args.c -o args.bc -w -DTORONTO<br>llvm-gcc -emit-llvm -c newbh.c -o newbh.bc -w -DTORONTO<br>llvm-gcc -emit-llvm -c util.c -o util.bc -w -DTORONTO<br>llvm-gcc -emit-llvm -c walksub.c -o walksub.bc -w -DTORONTO<br><br># To link files together using llvm-ld<br>llvm-ld -o bh.bc newbh.bc args.bc util.bc walksub.bc -lm<br><br>But when I try to run my pass over bh.bc file or just compile it to native code<br>llc bh.bc -o bh.s<br><br>I get the following error.<br>llc: bh.bc:1:1:<b> error: expected top-level entity</b><br><br>Do you need to do some special stuff when you want to compile a C program with different files to one bc file.<br><br>Thx,<br>Vincent<br><br>                                     </body>
</html>