List-Files with GNU

Giovanni Bajo giovannibajo@libero.it
Mon Oct 18 16:59:00 GMT 2004


Kukuk Barbara wrote:

> I'd like to generate a file from a C source file where you
> can find the C code and the corresponding assembler statements.
> Is this possible with GNU?

Compile with "-g3" (full debug informations), and then use "objdump --source
file", where file is either a single object file, or the full executable.

Giovanni Bajo




More information about the Gcc mailing list