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

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 11 08:10:08 PDT 2018


Not sure if you want anything more than -S? (eg: "clang foo.c -S" -
produces "foo.s", an assembly file)

On Wed, Apr 11, 2018 at 8:06 AM Kim Gadecki via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hey guys,
>
> I'm looking for a way to print assembly output of a file being compiled
> by clang. I've tried the -masm=intel and -x86-asm-syntax=intel flags.
> Can anyone clue me in on how to do this?
>
> Thanks very much,
>
> Kim
>
>
>
> _______________________________________________
> 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/20180411/c6b52bec/attachment.html>


More information about the cfe-dev mailing list