<div dir="ltr">Just got started and stuck at the same time. Working with the C-Api, i have come to the point where i want to emit a binary file for my module. I queried the X86-Target and called LLVMCreateTargetMachine this way:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">      LTarget := LLVMGetTargetFromName('x86');<br>      LMachine := LLVMCreateTargetMachine(LTarget, 'i386-win32-msvc', nil, nil,  LLVMCodeGenLevelDefault, LLVMRelocDefault, LLVMCodeModelDefault);<br></blockquote><div><br></div><div>A call to LLVMTargetMachineEmitToFile using LLVMObjectFile does output a obj-file. But it seems it is an ELF-File. Looking through the code(and looking into the Tripple.cpp) i am not sure what to do exactly for creating a COFF-File.</div><div><br></div><div>Best regards<br></div><div>Alexander B.<br></div></div>