public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* gcc question (off topic)
@ 2000-10-29 15:17 Jerry Kelley
  2000-10-29 15:26 ` Erik Mouw
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jerry Kelley @ 2000-10-29 15:17 UTC (permalink / raw)
  To: linux kernel

Can gcc generate ASM output with the source lines from the C file
interspersed as comments?

Thanks.

Jerry Kelley
jkelley@iei.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc question (off topic)
  2000-10-29 15:17 gcc question (off topic) Jerry Kelley
@ 2000-10-29 15:26 ` Erik Mouw
  2000-10-29 16:18 ` Alan Cox
  2000-11-01 10:13 ` Richard Henderson
  2 siblings, 0 replies; 4+ messages in thread
From: Erik Mouw @ 2000-10-29 15:26 UTC (permalink / raw)
  To: Jerry Kelley; +Cc: linux kernel

On Sun, Oct 29, 2000 at 10:17:36AM -0500, Jerry Kelley wrote:
> Can gcc generate ASM output with the source lines from the C file
> interspersed as comments?

Yes, "gcc -S". Look in the gcc info pages for more information (the man
page in known to be outdated).

If that isn't what you want, try "objdump -D -S" on the generated
object file. You have to use the "-g" flag for gcc to let this trick
work.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc question (off topic)
  2000-10-29 15:17 gcc question (off topic) Jerry Kelley
  2000-10-29 15:26 ` Erik Mouw
@ 2000-10-29 16:18 ` Alan Cox
  2000-11-01 10:13 ` Richard Henderson
  2 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2000-10-29 16:18 UTC (permalink / raw)
  To: Jerry Kelley; +Cc: linux kernel

> Can gcc generate ASM output with the source lines from the C file
> interspersed as comments?

Not afak directly. The makelst stuff in 2.2.18pre IBM contributed claims to
do the job though

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc question (off topic)
  2000-10-29 15:17 gcc question (off topic) Jerry Kelley
  2000-10-29 15:26 ` Erik Mouw
  2000-10-29 16:18 ` Alan Cox
@ 2000-11-01 10:13 ` Richard Henderson
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2000-11-01 10:13 UTC (permalink / raw)
  To: Jerry Kelley; +Cc: linux kernel

On Sun, Oct 29, 2000 at 10:17:36AM -0500, Jerry Kelley wrote:
> Can gcc generate ASM output with the source lines from the C file
> interspersed as comments?

Not directly.  However, gas will happily generate assembler listings
containing the C source.  See "-alh".


r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-11-01 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-29 15:17 gcc question (off topic) Jerry Kelley
2000-10-29 15:26 ` Erik Mouw
2000-10-29 16:18 ` Alan Cox
2000-11-01 10:13 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox