This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: embedding c code in assembly source


On Wed, 2004-01-07 12:49:47 -0800, Paul Cadaret <gnu@usd.com>
wrote in message <3FFC70EB.2040402@usd.com>:
> Is it possible to get gcc to embed c/c++ source code in with the 
> assembly source
> in a meaningful way?
> 
> If so, what arguments should be passed?
> 
> I've looked through the docs and gcc help but have not found this yet.

Compile with -g and look at the assembly with objdump -S.

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]