Xref: news2.mv.net comp.os.msdos.djgpp:5211 From: stwand07 AT uctvms DOT uct DOT ac DOT za Newsgroups: comp.os.msdos.djgpp Subject: Q: C src as comments in Assembly output? Date: 20 Jun 96 19:03:55 +0200 Organization: University of Cape Town Lines: 21 Message-ID: <1996Jun20.190355@uctvms.uct.ac.za> NNTP-Posting-Host: uctvms.uct.ac.za To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 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... I've checked the FAQ and info documentation, but there seems no way to modify the '-S' option to get C code as comments. Any idea if this is possible ? Adios Mark Wodrich.