[cfe-dev] assembly output
Thiago Farina
tfransosi at gmail.com
Tue Sep 3 04:19:40 PDT 2013
On Tue, Sep 3, 2013 at 8:19 AM, Thiago Farina <tfransosi at gmail.com> wrote:
> On Sun, Sep 1, 2013 at 12:15 PM, Reid Kleckner <rnk at google.com> wrote:
>> What's unreadable about empty.s that's better with objdump? It seems fine.
>> Is it the .cfi directives?
>>
> Yeah, I think it's that.
>
> Compare this (objdump --dissamble disa):
>
--disassemble
> 0000000000400510 <_Z3sumv>:
> 400510: 55 push %rbp
> 400511: 48 89 e5 mov %rsp,%rbp
> 400514: b8 03 00 00 00 mov $0x3,%eax
> 400519: 5d pop %rbp
> 40051a: c3 retq
> 40051b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
>
> To (clang++ -S disa.cc):
>
> _Z3sumv: # @_Z3sumv
> .cfi_startproc
> # BB#0: # %entry
> pushq %rbp
>
> --
> Thiago Farina
More information about the cfe-dev
mailing list