Re: a key for comments output

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

 



Sergei Tovpeko <sevtov@xxxxxxx> 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. :-)


[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