【第22期】观点:IT 行业加班,到底有没有价值?

vs2010 ASM

转载 2013年12月04日 23:02:49

MASM in VisualStudio 2010

 

First step:

 

Create an empty project in Visual C++:


Second, right-click project in solutionexplorer, Build customizations, tick "masm",

 


Then tap the right of mouse, select Add


Now, select C++ File(.cpp), enter the sourcefile name with .asm as extend file name.


Tap right of mouse, choose Properties:


Expand the entry under ConfigurationProperties. Then expand the entry named Microsoft Macro Assembler.


Notice that the Include Paths option hasbeen set to the x:\file directory\include directory.

In this example, include directory isc:\Irvine.


Next, select the Listing File entry, also in theMicrosoft Macro Assembler group. Notice that the Assembled Code Listing Fileentry (shown below) has been assigned a macro name (starting with $) thatidentifies the name of the source input file, with a file extension of .lst.So, if your program were named main.asm, the listing file would be namedmain.lst:


Find the Linker entry under ConfigurationProperties. Select the Input entry, and notice that two filenameshave been added to the Additional Dependencies entry. The user32.libfile is a standard MS-Windows file. The irvine32.lib file is the linklibrary file supplied with this book. There must be at least one spaceseparating the file names:


Next, select Linker underConfiguration Properties, and then select General. The AdditionalLibrary Directories option equals c:\Irvine, so the linker can findthe Irvine32.lib library file:


Select Linker under the ConfigurationProperties and select Debugging. Notice that the Generate DebugInfo option is set to Yes:


Select System under the Linkerentry. Notice that the SubSystem option has been set to Console:


We use the Console settingbecause it is easy for assembly language programs to write output to a textconsole (Command) window. This is the window you see when running cmd.exe fromthe Start > Run menu in Windows.

Click the OK button to close theProject Property Pages window.

 

举报

相关文章推荐

VS2010开发环境下制作安装项目

这里简单介绍如何在VS2010开发环境下制作安装项目,其中包括如何设置开机启动、删除注册表及安装后自动运行,加上卸载功能。 1、  创建安装项目     打开VS2010,点击菜单上的“文...

VS2008 AddIn 开发 – WorkspaceAddIn 实例(支持VS2010)

不知道你有没有遇到这种情况: 当要找一些以前做的代码做参考的时候,总是在文件夹里翻来翻去,光看项目名字也还是想不起来重要的代码究竟在哪个工程里。因此,自己开发个AddIn来方便进行本地的代码管理,通过添加本地的某个文件夹管理下面的所有的Solution。在AddIn里,可以快速切换Solution,...

程序员升职加薪指南!还缺一个“证”!

CSDN出品,立即查看!

VS2010中创建安装项目

 VS2010中创建安装项目 这里简单介绍如何在VS2010开发环境下制作安装项目,其中包括如何设置开机启动、删除注册表及安装后自动运行,加上卸载功能。 1、  创建安装项目   ...

VS2008 AddIn 开发 WorkspaceAddIn 实例(支持VS2010)

VS2008 AddIn 开发 WorkspaceAddIn 实例(支持VS2010) 2010年12月06日   不知道你有没有遇到这种情况: 当要找一些以前做的代码做参考的时候,总是在文件夹里翻来翻去,光看项目名字也还是想不起来重要的代码究竟在哪个工程里。因此,自己开发个AddIn来方便...

让VS2010支持Windows2000

参考网址:http://blog.csdn.net/pb8/article/details/49276775 用Visual Studio 2010编译的程序无法在Windows 2000,Windo...
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)