Re: Guidance on Decompiling GCC 11.4.0 Optimized Code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2025-3-11 14:26, manoj alladawar via Gcc-help 写道:
Dear GCC Community,

I hope this message finds you well.

I am currently working on a Debian-based system running Ubuntu 22.04 and
using GCC version 11.4.0. I have compiled a C source file using GCC with
the -O2 optimization flag, resulting in an optimized binary.

I am now interested in generating high-level C code from this optimized
binary for analysis and understanding. Could you kindly advise me on which
decompiler would be most suitable for this purpose? Specifically, I would
appreciate recommendations for decompilers that perform effectively on
GCC-based optimized code.

This can be done with `objdump`:

   objdump FILE --disassemble       # disassemble all code
   objdump FILE --disassemble=foo   # disassemble `foo`; may be specified
                                    # multiple times

There are some useful options:

   -r         Print relocations, so they don't appear to be mysterious zeroes.
   -w         Do not truncate line length to 80 cols.
   -Mintel    USe Intel syntax for x86.





--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux