[cfe-dev] Print assembly output of a compiled file from clang

Nico Weber via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 12 11:34:57 PDT 2018


-S -masm=intel prints assembly in intel syntax.

On Thu, Apr 12, 2018 at 2:09 PM, Tim Northover via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On 12 April 2018 at 18:43, David Blaikie via cfe-dev
> <cfe-dev at lists.llvm.org> wrote:
> > I don't think Clang/LLVM supports intel assembly syntax, probably only
> > gnu/gas syntax. But perhaps someone else can confirm.
>
> It's not piped through to Clang in a friendly way, but that's what
> "-mllvm -x86-asm-syntax=intel" should do. If the question really was
> about the syntax variant, Kim might have forgotten the "-mllvm"?
>
> Cheers.
>
> Tim.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180412/45f7efed/attachment.html>


More information about the cfe-dev mailing list