<div dir="ltr">Okay after some more searching, i finally solved it:<br>i386-pc-win32-coff<br><a href="https://clang.llvm.org/docs/CrossCompilation.html">https://clang.llvm.org/docs/CrossCompilation.html</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-19 19:12 GMT+02:00 Alexander Benikowski <span dir="ltr"><<a href="mailto:sebal007@googlemail.com" target="_blank">sebal007@googlemail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Prior to "win32" i used "windows"<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-09-19 19:09 GMT+02:00 Alexander Benikowski <span dir="ltr"><<a href="mailto:sebal007@googlemail.com" target="_blank">sebal007@googlemail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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(LTarge<wbr>t, '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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>