Re: preserving comments

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

 



On 24 November 2010 12:44, Sharanbr <sharanb@xxxxxxx> wrote:
> This might be a non standard usage, so please bear with me.
>
> I am in the process of writing a tool. The idea is that the user puts
> comments at certain points of his program.
> The comments have specific keywords. Once the code is compiled to generate
> assembly code, I would like to parse through the assembled code and then
> extract certain information based on the comments inserted in the code. The
> second part of the application is when the same process is followed to
> extract information from the linker output. For example, I would like to
> extract the physical address from which the current instruction is being
> executed. Can someone point me in the right direction if GCC has support to
> preserve the comments in the code as it assembles and links the code?

Nothing shoots out at me if gcc supports this, but i would imagine
using some nice inline asm use, you could possibly achieve something
akin to what your trying to do.

--Phil


[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