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

Tim Northover via cfe-dev cfe-dev at lists.llvm.org
Mon Apr 16 05:41:37 PDT 2018


Hi Kim,

On 16 April 2018 at 08:04, Kim Gadecki via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> F:\Clanggit\build\32\debug\bin>clang++ source.cpp -v -S -masm=intel

This would normally output the assembly to a file named "source.s". If
you want it actually print it on the screen you need "-o -" as well.
Is that the cause of your issues?

Cheers.

Tim.



More information about the cfe-dev mailing list