Visual Studio 2008中的程序集编程 [英] Assembly Programming in Visual Studio 2008

查看:105
本文介绍了Visual Studio 2008中的程序集编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人有Visual Studio 2008 MASM项目的最佳实践项目模板?我不知道为什么Microsoft随同MASM一起提供了VS,但是当默认情况下使用项目模板添加了太多内容时,建议您使用空白的C ++项目.

Does anyone have a best practice Project Template for Visual Studio 2008 MASM projects? I don't know why Microsoft shipped VS with MASM but epxect you to use a blank C++ project when there is so much that could have been added by default using a Project Template.

此外,由于我找不到MFS项目,因此TFS 2008的项目连接器是否存在?

Also, is there a project connector for TFS 2008 for MASM projects as I have been unable to find one?

推荐答案

好吧,经过一番检查,看来VS 2008至少包含masm .rules文件(为您提供所有编译选项的文件):

Well, after some checking, it appears that VS 2008 at least contains the masm .rules file (the one that gives you all the compilation options):

C:\Program Files\Microsoft Visual Studio 9.0\VC\VCProjectDefaults\masm.rules

好消息是,我目前拥有一个真正的成熟的Masm解决方案,其中包含四个项目,其中包括在VS 2008 Express SP1中打开的一个100%Masm解决方案. masm项目已与所有config小工具等完全集成到VS 2008中-不会像使用外部脚本等那样产生麻烦.因此VS2008中有masm支持,只是没有公开.根据此与开发人员博客条目比较, masm从SP1开始在VS2800中重新引入.

The good news is that I currently have a real full fledged masm solution with four projects, including an 100% masm one opened in VS 2008 Express SP1. The masm project is fully integrated into VS 2008 With all the config gadgets etc - no kludge like using an external script etc. So there is masm support in VS2008, it is just not exposed. According to this vs developer blog entry, masm was reintroduced in VS2800 starting at SP1.

该解决方案非常隐蔽,但相当容易实现:仅需四次单击操作.请记住,masm是从 VS 2008 SP1 (在此处通过Express测试)开始添加的.

The solution is well hidden, but quite easy to reach: it's a mere 4-click operation. Remember, masm was added starting with VS 2008 SP1 (tested here with Express).

  • 打开您的解决方案
  • 右键单击您的项目节点
  • 选择自定义构建规则
  • 您应该在此处看到masm规则,默认情况下未启用该规则.点击其复选框.

完成.现在,masm及其所有选项和所有内容都将显示在您的项目属性中.

Done. masm is now exposed in your project properties, with all its options and everything.

有关更多信息,请参见帮助中的"Visual C ++自定义生成规则文件对话框":

For more, "Visual C++ Custom Build Rule Files Dialog Box" in help:

ms-help://MS.VSCC.v90/MS.msdnexpress.v90.en/dv_vcide/html/ad4f26a5-8373-42ac-9044-8a806a50241e.htm

这篇关于Visual Studio 2008中的程序集编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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