Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Any way to get gcc to output ".lis"-type file?

7 views
Skip to first unread message

Tony

unread,
Aug 4, 2003, 1:52:52 PM8/4/03
to
I teach C classes to undergraduate students. This year we are moving our
classes to using gcc under Linux from having previously used the C compiler
on a VAX.

With the VAX C compiler, you could have the compiler generate a .lis file
which would have the source code, line numbers, and any compilation
errors/warnings from the compilation. (These would be inserted inline with
the code.) I had the students turn this code listing in. It was a very
handy way for me to verify that the program compiled without error just from
examining the hardcopy.

I've not discovered any way to have gcc generate a similar output file. Am
I overlooking something that would work?

Is there some other software tool that can be used with Linux that would
generate this type of output?

Thanks for any help.

Tony


Ralf Hildebrandt

unread,
Aug 4, 2003, 2:02:07 PM8/4/03
to
["Followup-To:" header set to linux.dev.gcc.]

> With the VAX C compiler, you could have the compiler generate a .lis file
> which would have the source code, line numbers, and any compilation
> errors/warnings from the compilation. (These would be inserted inline with
> the code.) I had the students turn this code listing in. It was a very
> handy way for me to verify that the program compiled without error just from
> examining the hardcopy.

Have a look at Praktomat, this will save you a LOT of work:
http://sourceforge.net/projects/praktomat/

--
Ralf Hildebrandt (Im Auftrag des Referat V a) Ralf.Hil...@charite.de
Charite Campus Mitte Tel. +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze - Fax. +49 (0)30-450 570-916
AIM: ralfpostfix

0 new messages