Hello, I have a very simple input llvm IR file. I wanted to generate a 32-BIT a.out executable from this, but, couldn't make it. By default it is 64 BIT. Is there any way to dictate it from the input LLVM file or I am missing anything. The command I used : clang test.ll I tried playing with "target datalayout" but no success yet. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130119/c328c81c/attachment.html>
Try to generate the .ll file using clang's -m32 flag On 18/01/13 19:54, Somenath Chakraborty wrote:> Hello, > I have a very simple input llvm IR file. I wanted to generate a 32-BIT > a.out executable from this, but, couldn't make it. By default it is 64 BIT. > Is there any way to dictate it from the input LLVM file or I am missing > anything. > The command I used : clang test.ll > I tried playing with "target datalayout" but no success yet. > Thanks.