while running the assembly language programs using masm .lst, files are generated.
What are the exact contents of this .lst files and why is this conversion essential?
A file with an . lst extension is most likely a text file that contains a list of data. LST files are used by many different programs, including Microsoft Visual Studio and various text editors. A typical LST file contains a list of information, separated by line breaks.
A list file (. LST) contains a block of C code [commented out by a sequence of period characters] followed by the assembly code for that block.
A listing file shows precisely how the assembler translates your source file into machine code. The listing documents the assembler's assumptions, memory allocations, and optimizations. MASM creates an assembly listing of your source file whenever you do one of the following: Select the appropriate option in PWB.
Go to Property of Project : ( note platform for correct in first line - for me: WIN32 ) Go to Microsoft Macro Assembler - Listing file - set Yes(/Sg) Enable Assembly Generated Code Listing and set $(ProjectName). lst in Assembled Code Listing File.
Being another dinosaur, I think we should promote Hans Passant's comment into an answer.
Back in the olden days, assembly programmers didn't have very good debuggers or an operating system that permitted debugging and code viewing at the same time. So a listing file that was formatted for a printer was a good way to have something to look at while troubleshooting code. Paper consumption was stupendous btw. – Hans Passant May 8 at 17:28
Programming using paper and pencil is a lost art. Not missed by many.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With