文档详情

VS2005,VS2008下使用yasm.doc

发布:2018-04-19约2.73千字共3页下载文档
文本预览下载声明
Using Yasm with Visual Studio 2005 and VC++ version 8 (1) Firstly you need to locate the directory (or directories) where the VC++ compiler binaries are located and put copies of the appropriate yasm.exe binary in these directories. 第一步就是应该把yasm.Exe放进VC的编译目录中。[Windows Yasm executable binaries that are not named yasm.exe will need to be renamed yasm.exe after being placed in the appropriate directories.记得要改名 直接就是简单的yasm.exe] On a win32 system the win32 version of Yasm has to be used. On an x64 system either the 32 or the 64 bit versions can be used but the rules file is set up to use the 32 bit version. The win32 Yasm binary should be placed in the 32-bit VC++ binary directory, which is typically located at: Program Files (x86)\Microsoft Visual Studio 8\VC\bin If needed the 64-bit Yasm binary should be placed in the 64-bit tools binary directory, which is typically at: Program Files\Microsoft Visual Studio 8\VC\bin (2) To use the custom tools facility in Visual Studio 2005, you need to place a copy of the yasm.rules file in the Visual Studio 2005 VC project defaults directory, which is typically located at: (为了搭载VS2005使用,需要另外添加一个yasm.Rules文件) Program Files (x86)\Microsoft Visual Studio 8\VC\VCProjectDefaults This allows you to configure Yasm as an assembler within the VC++ IDE. To use Yasm in a project, right click on the project in the Solution Explorer and select Custom Build Rules... This will give you a dialog box that allows you to select Yasm as an assembler (note that your assembler files need to have the extension .asm). To assemble a file with Yasm, select the Property Page for the file and the select Yasm Assembler in the Tool dialog entry. Then click Apply and an additional property page entry will appear and enable Yasm settings to be established. As alternative to placing the yasm.rules files as described above is to set the rules file path in the Visual Studio 2005 settings dialogue. It is also important to note that the rules file passes the symbol
显示全部
相似文档