‏הצגת רשומות עם תוויות Visual Studio 2010. הצג את כל הרשומות
‏הצגת רשומות עם תוויות Visual Studio 2010. הצג את כל הרשומות

יום רביעי, 13 בנובמבר 2013

How to setup Assembly environment


Requirements


Getting started
Download the Irvine’s example program folder:
(I have Visual Studio 2010 so I chose:
Extract it to: c:\Irvine

Creating new project
Copy c:\Irvine\Examples\Project_Sample folder to a new location and open the *.sln file and work on it.


Debugging Tips
In assembly language running debugging mode with registers flags and memory can help you.
First, make sure you are in debug mode.
Put brake point in one of your code lines or press F10 and then the registers option will be available.


Go to Debug >  Windows > Registers:

















You will receive the registers window:







Press right click on the Registers window and check the Flags:



















And you will receive the flags (marked):







For more information you can visit Irvine website: http://www.asmirvine.com/





יום ראשון, 27 באוקטובר 2013

LNK1123 error when bulding VC++ 2010 project after installing Visual Studio 2012 or .NET Framework 4.5

Problem:
When trying to build a program in Visual Studio 2010 receive an error:


Error      1              error LNK1123: failure during conversion to COFF: file invalid or corrupt                C:\Users\username\documents\visual studio 2010\Projects\nameOfProject\cpp\LINK  cpp

Analyze:
The problem started after installing .NET Framework 4.5
According to Microsoft the issue is caused by a dependency failure of cvtres.exe on msvcr100_clr0400.dll which is shipped with Visual Studio 2010 RTM and eventually updated with a new version when Visual Studio 2012 RTM or .NET Framework 4.5 is installed. 




Resolution:


  • Either disable incremental linking, by going to
    Project Properties
       -> Configuration Properties
           -> Linker (General)
             -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"


  •        or install VS2010 SP1 from Microsoft website:
               http://www.microsoft.com/en-us/download/details.aspx?id=23691