This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: List-Files with GNU
Giovanni Bajo writes:
> 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.
Or (prettier)
gcc -g -Wa,-adhls
Andrew.