如何在Visual Studio中生成MAP文件 [英] How to generate a MAP file in visual Studio

查看:740
本文介绍了如何在Visual Studio中生成MAP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

常规IDE可以选择生成MAP文件,该文件显示函数的位置以及变量在内存中的使用情况以及STACK和RAM的使用情况. 在Visual Studio Projects中,我们可以生成MAP文件并获取此信息.特别是堆栈和RAM统计信息.

Generaly IDEs has option to generate MAP file which shows the locations of the functions and the variables across the memory and the STACK and RAM usages. Where in Visual Studio Projects we can generate a MAP file and get this information.Especially the Stack and RAM statistics.

推荐答案

也许您想看一下文档.

将创建一个.map文件的链接器指令是, /MAP [:文件名]

The linker directive which will create a .map file is just, /MAP[:filename]

和..

文件名:映射文件的用户指定名称.它将替换默认名称.

filename: A user-specified name for the mapfile. It replaces the default name.

library/k7xkk3e2.aspx

found under https://msdn.microsoft.com/en-us/library/k7xkk3e2.aspx

此链接器指令应该是您想要的:). 或者更好地在

This linker directive should be what you were looking for :). Or better to be found under

  1. 打开项目的属性页"对话框.有关详细信息,请参见设置Visual C ++项目属性.
  2. 单击链接器文件夹.
  3. 单击调试"属性页.
  4. 修改生成地图文件"属性.

这篇关于如何在Visual Studio中生成MAP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆