Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 4th, 2008, 11:40 PM
Andrew Haley
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How to have gcc generate assembler code with C source listed?

Bob Plantz wrote:
Fri, 2008-07-04 at 10:55 +0100, Andrew Haley wrote:
>Chen (™ˆ) Jun (†›) wrote:

Is there any options to enable this? If yes, since what version of gcc
is it supported?
>All of them.
>>

>-g -Wa,-adhls


Very nice. I didn't know about this.

Can you tell me where .loc is documented?
When I see something like:
.loc 1 15 0
in the assembly language, I easily figured out that 15 is the line
number in the original C code. But it would be nice to know what the
other two numbers mean.

I have no idea; if I wanted to know I'd look in the gcc source to see what
this generates.

Andrew.

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Development > How to have gcc generate assembler code with C source listed?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT