News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Listing file with MASM

Started by Gunther, January 27, 2021, 12:28:30 PM

Previous topic - Next topic

Gunther

Is it possible to generate a MASM listing file without the text of the *.inc files?

Gunther
You have to know the facts before you can distort them.

jj2007

Quote from: Gunther on January 27, 2021, 12:28:30 PM
Is it possible to generate a MASM listing file without the text of the *.inc files?

Gunther

Check .nolist and .listall in the Masm reference:
.nolist
include \masm32\include\masm32rt.inc
.code
start:
.listall
MsgBox 0, "Check the listing", "Hello world", MB_OK
.nolist
exit
end start


2990687 bytes of *.lst with .nolist
6835034 bytes of *.lst without .nolist

Gunther

Jochen,

thank you for the fast help.  :thumbsup: I couldn't find a reasonable command line switch.

Gunther
You have to know the facts before you can distort them.

hutch--

You can also have a look at the /EP switch and even though it produces a very large listing, you get a lot of info by doing it. On the odd occasion when I use it, I cheat and do a search for something in the actual code that occurs after all the header file data.

Gunther

Steve,

yes the listing is very large. But with your trick one can handle it. Thank you  :thumbsup:

Gunther
You have to know the facts before you can distort them.