BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan

Add a LINK_FLAGS flag to your “sources” file, here is an example:

#Following Are the Linker Flags:
#-map is to generate a map file at the end of the linking process
#and /opt:noicf is to remove the linker optimaztion of code segments.
LINKER_FLAGS = $(LINKER_FLAGS) /opt:noref /opt:noicf

-----Original Message-----
From: xxxxx@netway.com [mailto:xxxxx@netway.com]
Sent: Tuesday, March 12, 2002 9:14 AM
To: NT Developers Interest List
Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%

Add the following line to your “sources” file.

LINKER_FLAGS=-MAP

  • Vipul

-----Original Message-----
From: xxxxx@netway.com [mailto:xxxxx@netway.com]
Sent: Tuesday, March 12, 2002 9:14 AM
To: NT Developers Interest List
Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@fvc.com
To unsubscribe send a blank email to %%email.unsub%%

It’s been a long time since I needed to do that, but the way to do it is to
ask cl.exe for help, which will give you the command line option you need
to pass to it. Then that option into your C_DEFINES or USER_C_FLAGS macro
in your sources. I can’t remember if you need to do the same for the
linker, there is a macro for that, too.

Phil

xxxxx@xxxxx@lists.osr.com on 03/12/2002 10:13:42 AM

Please respond to “NT Developers Interest List”

Sent by: xxxxx@lists.osr.com

To: “NT Developers Interest List”
cc:

Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@seagate.com
To unsubscribe send a blank email to %%email.unsub%%

In your sources file, you make these changes.

For mixed assembly language:

USER_C_FLAGS= /FAcs

For map file:

LINKER_FLAGS= /MAP

-----Original Message-----
From: xxxxx@netway.com [mailto:xxxxx@netway.com]
Sent: Tuesday, March 12, 2002 12:14 PM
To: NT Developers Interest List
Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site
don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@nsisoftware.com
To unsubscribe send a blank email to %%email.unsub%%

Thanks for the quick response. This works pretty well and I can add the path
to the directory where the rest of the output files are.

Thanks
Dan

-----Original Message-----
From: Gilad Ben-Zeev [mailto:xxxxx@appstream.com]
Sent: Tuesday, March 12, 2002 12:24 PM
To: NT Developers Interest List
Subject: [ntdev] RE: BUILD question. How to get list and map files

Add a LINK_FLAGS flag to your “sources” file, here is an example:

#Following Are the Linker Flags:
#-map is to generate a map file at the end of the linking process
#and /opt:noicf is to remove the linker optimaztion of code segments.
LINKER_FLAGS = $(LINKER_FLAGS) /opt:noref /opt:noicf

-----Original Message-----
From: xxxxx@netway.com [ mailto:xxxxx@netway.com
mailto:xxxxx ]
Sent: Tuesday, March 12, 2002 9:14 AM
To: NT Developers Interest List
Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@emulex.com
To unsubscribe send a blank email to %%email.unsub%%</mailto:xxxxx>

I looked at this option and got only a partially successful result. Adding
/Fa generates source listing files in the same directory as the C files. Is
there a way to have them put in the objXYZ\i386 directory with all the other
output files.

Thanks
Dan

-----Original Message-----
From: xxxxx@seagate.com [mailto:xxxxx@seagate.com]
Sent: Tuesday, March 12, 2002 12:51 PM
To: NT Developers Interest List
Subject: [ntdev] Re: BUILD question. How to get list and map files

It’s been a long time since I needed to do that, but the way to do it is to
ask cl.exe for help, which will give you the command line option you need
to pass to it. Then that option into your C_DEFINES or USER_C_FLAGS macro
in your sources. I can’t remember if you need to do the same for the
linker, there is a macro for that, too.

Phil

xxxxx@xxxxx@lists.osr.com on 03/12/2002 10:13:42 AM

Please respond to “NT Developers Interest List”

Sent by: xxxxx@lists.osr.com

To: “NT Developers Interest List”
cc:

Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@seagate.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@emulex.com
To unsubscribe send a blank email to %%email.unsub%%

Nmake foobar.cod (where foobar.c is the name of the source file)

-----Original Message-----
From: xxxxx@netway.com [mailto:xxxxx@netway.com]
Sent: Tuesday, March 12, 2002 9:14 AM
To: NT Developers Interest List
Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@nvidia.com
To unsubscribe send a blank email to %%email.unsub%%

MSVC Options /FAcs /Fa generate the assembly listing with source code and
everything.

Alberto.

-----Original Message-----
From: Mark Overby [mailto:xxxxx@nvidia.com]
Sent: Tuesday, March 12, 2002 1:38 PM
To: NT Developers Interest List
Subject: [ntdev] RE: BUILD question. How to get list and map files

Nmake foobar.cod (where foobar.c is the name of the source file)

-----Original Message-----
From: xxxxx@netway.com [mailto:xxxxx@netway.com]
Sent: Tuesday, March 12, 2002 9:14 AM
To: NT Developers Interest List
Subject: [ntdev] BUILD question. How to get list and map files

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

Can anyone help? Thanks
Dan


You are currently subscribed to ntdev as: xxxxx@nvidia.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%

Hi,

I want to generate assembly language list files and map files for my
driver using the build facility. I’ve looked at the documentation pretty
carefully, yet I’;m still stumped. Even the latest docs on this site don’t
seem to have the instructions for doing this.

I use this to get a MAP file.

LINKER_FLAGS=$(LINKER_FLAGS) -MAP -MAPINFO:EXPORTS -MAPINFO:LINES

Jos

I am using:
USER_C_FLAGS=$(USER_C_FLAGS) /FAcs /Fa$O/
LINKER_FLAGS=$(LINKER_FLAGS) /MAP /MAPINFO:LINES
$O will expand to the object directory (objXYZ\i386).

Hope this helps
Thierry

“Sullivan, Daniel” wrote:

I looked at this option and got only a partially successful result. Adding
/Fa generates source listing files in the same directory as the C files. Is
there a way to have them put in the objXYZ\i386 directory with all the other
output files.

Thanks
Dan

-----Original Message-----
From: xxxxx@seagate.com [mailto:xxxxx@seagate.com]
Sent: Tuesday, March 12, 2002 12:51 PM
To: NT Developers Interest List
Subject: [ntdev] Re: BUILD question. How to get list and map files

It’s been a long time since I needed to do that, but the way to do it is to
ask cl.exe for help, which will give you the command line option you need
to pass to it. Then that option into your C_DEFINES or USER_C_FLAGS macro
in your sources. I can’t remember if you need to do the same for the
linker, there is a macro for that, too.

Phil

xxxxx@xxxxx@lists.osr.com on 03/12/2002 10:13:42 AM

Please respond to “NT Developers Interest List”
>
> Sent by: xxxxx@lists.osr.com
>
> To: “NT Developers Interest List”
> cc:
>
> Subject: [ntdev] BUILD question. How to get list and map files
>
> I want to generate assembly language list files and map files for my
> driver using the build facility. I’ve looked at the documentation pretty
> carefully, yet I’;m still stumped. Even the latest docs on this site don’t
> seem to have the instructions for doing this.
>
> Can anyone help? Thanks
> Dan
>
>

Thanks! This is exactly what I needed. The link map was easy to figure out
on my own, but I couldn’t figure out how to get the the assembly listings
into the proper dirctory.

BTW: For anyone else that needs this, the $O/ is case sensitive, you must
use upper case and the trailing / is required otherwise you create a single
.ASM file called i386.asm

Thanks again,
Dan

-----Original Message-----
From: Thierry Gouraud [mailto:xxxxx@bull.net]
Sent: Wednesday, March 13, 2002 3:44 AM
To: NT Developers Interest List
Subject: [ntdev] Re: BUILD question. How to get list and map files

I am using:
USER_C_FLAGS=$(USER_C_FLAGS) /FAcs /Fa$O/
LINKER_FLAGS=$(LINKER_FLAGS) /MAP /MAPINFO:LINES
$O will expand to the object directory (objXYZ\i386).

Hope this helps
Thierry

“Sullivan, Daniel” wrote:

I looked at this option and got only a partially successful result. Adding
/Fa generates source listing files in the same directory as the C files.
Is
there a way to have them put in the objXYZ\i386 directory with all the
other
output files.

Thanks
Dan

-----Original Message-----
From: xxxxx@seagate.com [mailto:xxxxx@seagate.com]
Sent: Tuesday, March 12, 2002 12:51 PM
To: NT Developers Interest List
Subject: [ntdev] Re: BUILD question. How to get list and map files

It’s been a long time since I needed to do that, but the way to do it is
to
ask cl.exe for help, which will give you the command line option you need
to pass to it. Then that option into your C_DEFINES or USER_C_FLAGS macro
in your sources. I can’t remember if you need to do the same for the
linker, there is a macro for that, too.

Phil

xxxxx@xxxxx@lists.osr.com on 03/12/2002 10:13:42 AM

Please respond to “NT Developers Interest List”
>
> Sent by: xxxxx@lists.osr.com
>
> To: “NT Developers Interest List”
> cc:
>
> Subject: [ntdev] BUILD question. How to get list and map files
>
> I want to generate assembly language list files and map files for my
> driver using the build facility. I’ve looked at the documentation pretty
> carefully, yet I’;m still stumped. Even the latest docs on this site don’t
> seem to have the instructions for doing this.
>
> Can anyone help? Thanks
> Dan
>
>


You are currently subscribed to ntdev as: xxxxx@emulex.com
To unsubscribe send a blank email to %%email.unsub%%