Author Topic: Map file information  (Read 105 times)

Ravi Kiran

  • Regular Member
  • *
  • Posts: 44
Map file information
« 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?

jj2007

  • Member
  • *****
  • Posts: 13274
  • Assembly is fun ;-)
    • MasmBasic
Re: Map file information
« Reply #1 on: November 23, 2022, 08:19:37 PM »
Code: [Select]
/Zd /Zi /Zf  Assembler
/mapinfo:lines  Linker

\masm32\MasmBasic\Res\SkelTryCatch.asc uses this to tell the editor 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:

Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

Ravi Kiran

  • Regular Member
  • *
  • Posts: 44
Re: Map file information
« Reply #2 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

jj2007

  • Member
  • *****
  • Posts: 13274
  • Assembly is fun ;-)
    • MasmBasic
Re: Map file information
« Reply #3 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:
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

Ravi Kiran

  • Regular Member
  • *
  • Posts: 44
Re: Map file information
« Reply #4 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 .

Ravi Kiran

  • Regular Member
  • *
  • Posts: 44
Re: Map file information
« Reply #5 on: November 23, 2022, 09:21:07 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

jj2007

  • Member
  • *****
  • Posts: 13274
  • Assembly is fun ;-)
    • MasmBasic
Re: Map file information
« Reply #6 on: November 23, 2022, 09:23:46 PM »
There is no option in qeditor x86 to generate a direct listing and map file info.

QEditor is fully configurable, check \Masm32\menus.ini
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

Ravi Kiran

  • Regular Member
  • *
  • Posts: 44
Re: Map file information
« Reply #7 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.

jj2007

  • Member
  • *****
  • Posts: 13274
  • Assembly is fun ;-)
    • MasmBasic
Re: Map file information
« Reply #8 on: November 23, 2022, 10:38:00 PM »
Code: [Select]
/Zd /Zi /Zf  Assembler
/mapinfo:lines  Linker
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.