delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/21/15:26:05

Xref: news2.mv.net comp.os.msdos.djgpp:5249
From: jon AT neurodne DOT demon DOT co DOT uk (Jon Raymond)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: C src as comments in Assembly output?
Date: 21 Jun 1996 11:11:42 +0100
Organization: Jon's Linux Box.
Lines: 31
Message-ID: <4qdsgu$48@neurodne.demon.co.uk>
References: <1996Jun20 DOT 190355 AT uctvms DOT uct DOT ac DOT za>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

stwand07 AT uctvms DOT uct DOT ac DOT za wrote:
: I am mucking around with some "demo" style effects in Allegro, and would like
: to try coding some routines in assembly for speed. However, I know perilously
: little Intel assembly, only M68k !

As an Ex-Amiga man I have the same problem.

: 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 :

: // x = array[1] + array[2] + array[3]>>2;
: assembly blah
: blah..blah..blah
: etc... blah.. etc..
: // y = x*5;
: more assembly... blah...

If you run Linux and X-Windows then try Xddd. This is a Motif based debugger
that displays your program in assembly and in C. The format is a split
window, with the source code in the top window and the disassembly in the
bottom. You can trace through either the assembly or the C source.
Xddd comes ready compiled with the Motif stuff statically linked (3 Meg).

I know this may not be what your after, but it is all I can suggest. Sorry.

Jon.
-- 

                      Email: jon AT neurodne DOT demon DOT co DOT uk

- Raw text -


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