From: "Salvador Eduardo Tropea (SET)" To: jon AT neurodne DOT demon DOT co DOT uk, djgpp AT delorie DOT com Subject: Re: Q: C src as comments in Assembly output Date: Fri, 21 Jun 1996 17:26:55 +0300 (GMT) Message-ID: <9606211727.aa15721@ailin.inti.edu.ar> >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. >-- FSDB for DOS is a debugger that shows the code mixed (C/asm). bye SET. ******************************************************************************** Salvador Eduardo Tropea (SET) - salvador AT inti DOT edu DOT ar Work: INTI (National Institute of Industrial Technology) Sector: ICE (Electronic Control & Instrumentation) Post (Home): Curapaligue 2124 - Caseros (1678)- Buenos Aires - Argentina