<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I assume with target you mean the backend? Consider the x86 backend. It<br>
supports 32bit and 64bit mode, with the GNU x32 ABI in between. There<br>
are three different executable formats support (ELF, PE, MachO) with<br>
different constraints. Some platforms require 32bit alignment of the<br>
stack, others require 128bit alignment. The list goes on. The triple specifies<br>
the combination of target, OS and potentially file format and sub-ABI.<br>
<br>
Joerg<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br>Thanks for the response. I was trying to generate assembly which would use vector instructions. I need to see how they look, whether it is ARM, Mips or X86. However for some reason clang would generate an error saying that a given target does not exist. Here is the command line I used:</div><div class="gmail_extra"><br></div><div class="gmail_extra">clang -S test.c -o test.sse2.x86-64.s --target=x86-unknown-linux-eabi -mfloat-abi=hard -mcpu=x86-64 -mfpu=SSE2 -fslp-vectorize-aggressive -fslp-vectorize-aggressive -fslp-vectorize -fvectorize -fno-lax-vector-conversions</div><div class="gmail_extra"><br></div><div class="gmail_extra">Here is the response I got:</div><div class="gmail_extra"><div class="gmail_extra">clang: warning: argument unused during compilation: '-mfloat-abi=hard'</div><div class="gmail_extra">clang: warning: argument unused during compilation: '-mcpu=x86-64'</div><div class="gmail_extra">clang: warning: argument unused during compilation: '-mfpu=SSE2'</div><div class="gmail_extra">error: unknown target triple 'x86-unknown-linux-eabi', please use -triple or -arch</div><div><br></div><div><br></div><div>I tried every possible combination of --target I could think of but nothing worked. Would you mind helping me out? </div><div>Any help is appreciated.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div>