Mail Archives: djgpp/1997/08/18/18:51:28
i96csm AT river DOT tay DOT ac DOT uk wrote:
>
> Is there anyway to get gpp
> to produce assembly output WITH the C++ source code commented out
> (So it looks something like this)
>
> ; void foo(void)
> ; {
> ; int i,y;
> ; i=10;
> mov exp,%10
> ; j=20;
> move dxp,%10
Try the followin:
gcc -g -c -Wa,-ahl=foo.lst foo.c
This compiles foo.c and creates an assembler listing in
foo.lst which contains also the high level language lines.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -