Mail Archives: djgpp/1999/02/23/21:20:38
Dave Bird wrote:
> nasm -fcoff -lfred.l fred.asm
>
> Errors are reported, NO LISTING FILE "FRED.L" IS PRODUCED. Strange :-?
> surely the listing is where you look to analyse and correct your errors
> (unless I've misunderstood the commands, of course).
NASM is a simple two pass assembler. It is very hard to write
a program that goes forward reasonably after encountering
severe errors in its input. NASM does not do this as well as
commercial assemblers do. I expect some of your errors were
severe enough that NASM couldn't even start its second pass,
so it never started writing to the listing file.
The error messages output by the assembler are where I
look to analyse errors. I redirect those errors to a file
and use a text editor (brief) that knows about .err files.
Each time I press ^N it displays the next error from the
.err file and moves my cursor to the source line of the
error. (I know there are GNU etc. editors that do
similar things, don't flame me for prefering an old
commercial one instead).
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -