public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* a key for comments output
@ 2004-04-04 15:49 Sergei Tovpeko
  2004-04-04 19:13 ` llewelly
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Tovpeko @ 2004-04-04 15:49 UTC (permalink / raw)
  To: gcc-help

Hello.

I'd know is there any key which permits the output asm-code with comments included into C-code?
The place of comments into asm-code must corresponds to the place into C, where they was put.
How I can do this with gcc?

Thank you very much.


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

* Re: a key for comments output
  2004-04-04 15:49 a key for comments output Sergei Tovpeko
@ 2004-04-04 19:13 ` llewelly
  0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-04-04 19:13 UTC (permalink / raw)
  To: sevtov; +Cc: gcc-help

Sergei Tovpeko <sevtov@mail.ru> writes:

> Hello.
> 
> I'd know is there any key which permits the output asm-code with
> comments included into C-code?

I am not sure what you asking for. If you want the comments in your C
    code to occur in gcc's assembler output (obtained with either -S
    or --save-temps), I know of no way to do that. You can get a
    similar effect like this:

    int main()
    {
        asm("/* This is a comment. */");
    }

    will result in this:

    #APP
            /*This is a comment.*/
    #NO_APP

    in the assembler output.

If you want more readable asm, you could experiment with
    -fverbose-asm, which is sometimes easier to read and sometimes
    not. :-)

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

end of thread, other threads:[~2004-04-04 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-04 15:49 a key for comments output Sergei Tovpeko
2004-04-04 19:13 ` llewelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).