The MASM Forum

Projects => MASM32 => Topic started by: Ravi Kiran on November 23, 2022, 07:20:32 PM

Title: Map file information
Post by: Ravi Kiran on November 23, 2022, 07:20:32 PM
Can anyone here give me a detailed information on how to generate a map file and a limited listing file for a particular assembly source and executable file both x86 and x64 in command line. Do I have to include some linker options?
Title: Re: Map file information
Post by: jj2007 on November 23, 2022, 08:19:37 PM
/Zd /Zi /Zf  Assembler
/mapinfo:lines  Linker


\masm32\MasmBasic\Res\SkelTryCatch.asc uses this to tell the editor (http://masm32.com/board/index.php?topic=5314.0) in which source line an exception happened, so it can jump there and select that line once the error message has been displayed in the console and the program has been closed:

(http://www.jj2007.eu/pics/TryCatchLines.png)
Title: Re: Map file information
Post by: Ravi Kiran on November 23, 2022, 08:30:18 PM
Qeditor sir. There is no option in qeditor x86 to generate a direct listing and map file info. My objective is to create a nice IDE for masm x86 and x64 just like PWB
For 16-bit masm. What I'm referring to is for .asm source files not for .asc source files in masmbasic
Title: Re: Map file information
Post by: jj2007 on November 23, 2022, 08:33:33 PM
RichMasm doesn't care if the source is rich text (*.asc) or poor text (*.asm), but I've never tried for 16-bit asm, so good luck for your IDE :thumbsup:
Title: Re: Map file information
Post by: Ravi Kiran on November 23, 2022, 08:36:18 PM
Ok sir I'll see the richmasm editor. What you have created is an exceptional editor sir. I always need your help .
Title: Re: Map file information
Post by: Ravi Kiran on November 23, 2022, 09:21:07 PM
Quote from: Ravi Kiran on November 23, 2022, 08:36:18 PM
Ok sir I'll see the richmasm editor. What you have created is an exceptional editor sir. I always need your help . As I've said before I'll write a very big book on Microsoft macro assembler
Title: Re: Map file information
Post by: jj2007 on November 23, 2022, 09:23:46 PM
Quote from: Ravi Kiran on November 23, 2022, 08:30:18 PMThere is no option in qeditor x86 to generate a direct listing and map file info.

QEditor is fully configurable, check \Masm32\menus.ini
Title: Re: Map file information
Post by: Ravi Kiran on November 23, 2022, 10:35:44 PM
The Listing file is generated using command line option >ml /Fl *.asm . It's rather a big one.The source file is executed but I don't know how to generate map file. I've tried the command line option  >ml /Fm *.asm for map file info. It shows linker errors and warnings  like warning lnk4044, lnk4033 and fatal error lnk1181. Plz give me the full command line map file generating info.
Title: Re: Map file information
Post by: jj2007 on November 23, 2022, 10:38:00 PM
Quote from: jj2007 on November 23, 2022, 08:19:37 PM
/Zd /Zi /Zf  Assembler
/mapinfo:lines  Linker