<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 17, 2015 at 3:00 PM, Steve King <span dir="ltr"><<a href="mailto:steve@metrokings.com" target="_blank">steve@metrokings.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>> If clang is the user's one stop shop, here's one such cross compiler<br>
>> example I'd like to understand better: GNU binutils has no clue of my<br>
>> target. Instead of trying to use gas, how should GNU-less targets<br>
>> enable clang invoke llvm-mc to assemble?<br>
>><br>
> -fintegrated-as / -fno-integrated-as<br>
<br>
</span>I tried, but integrated-as was impractical due to too many possible<br>
machine code matches for a given assembly statement. So, the compiler<br>
deals in pseudos and emits .s files. If the integrated assembler<br>
could accept an assembly string instead of an mcinst, I'd be in<br>
business.<br>
<br>
Regardless, users could pass .s files on the command line and Clang<br>
would still need to call llvm-mc with the right options.</blockquote><div><br></div><div>Clang already does this without invoking llvm-mc. It invokes 'clang -cc1as' which performs the same function. Try it. :) </div></div></div></div>