[cfe-dev] Print assembly output of a compiled file from clang
Kim Gadecki via cfe-dev
cfe-dev at lists.llvm.org
Mon Apr 16 00:04:05 PDT 2018
Hey guys,
I tried the following at the command prompt:
F:\Clanggit\build\32\debug\bin>clang++ source.cpp -v -S -masm=intel
I'm expecting this to output the assembly for my compiled source.cpp
translation unit but I don't get anything. Any ideas?
Thanks,
Kim
On 15/04/2018 11:36 pm, Nico Weber wrote:
> If you need more help, please reply to the list, not to me personally.
>
> On Sun, Apr 15, 2018, 9:32 AM Kim Gadecki <Gadecki at iinet.net.au
> <mailto:Gadecki at iinet.net.au>> wrote:
>
> Hey guys,
>
> I tried the following at the command prompt:
>
> F:\Clanggit\build\32\debug\bin>clang++ source.cpp -v -S -masm=intel
>
> I'm expecting this to output the assembly for my compiled
> source.cpp translation unit but I don't get anything. Any ideas?
>
> Thanks,
> Kim
>
>
> On 13/04/2018 2:34 am, Nico Weber via cfe-dev wrote:
>> -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 <mailto: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 <mailto: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 <mailto:cfe-dev at lists.llvm.org>
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org <mailto: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/20180416/5fec1d0a/attachment.html>
More information about the cfe-dev
mailing list