www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/24/14:59:45

Date: 24 Jun 96 14:34:23 EDT
From: "Troy D. Van Horn" <74617 DOT 365 AT CompuServe DOT COM>
To: DJGPP Mail List <djgpp AT delorie DOT com>
Cc: Mark Wodrich <stwand07 AT uctvms DOT uct DOT ac DOT za>
Subject: Q: C src as comments in Assembly output?
Message-ID: <960624183423_74617.365_EHH100-1@CompuServe.COM>

Mark Wodrich wrote:

> As a self-tutoring method, I'd like to see what assembly code results from my
C
> program. So, is it possible to have the compiler produce assembly code _with_
> the C code as comments, like :

Try:
    gcc -c -g -Wa,-alh prog.c >prog.lst

   You can also add any optimization switches you want, and 
see the difference in the code.

Troy Van Horn.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019