Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. MINGW As the complier and GDB as the debugger in Visual Studio

MINGW As the complier and GDB as the debugger in Visual Studio

Scheduled Pinned Locked Moved Visual Studio
c++csharpvisual-studiodebugging
8 Posts 3 Posters 65 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi just wondering if anyone has changed from MSVC to Mingw. I recently wanted to write my own prologue and epilogue code. for (I am using C++ with MFC) and I noticed the mingw supports X64 inline assembler. There are no intrinsics to access registers in MSVC which would make if difficult Thanks

    L 1 Reply Last reply
    0
    • F ForNow

      Hi just wondering if anyone has changed from MSVC to Mingw. I recently wanted to write my own prologue and epilogue code. for (I am using C++ with MFC) and I noticed the mingw supports X64 inline assembler. There are no intrinsics to access registers in MSVC which would make if difficult Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      ForNow wrote:

      I noticed the mingw supports X64 inline assembler

      So does MSVC. See __asm | Microsoft Docs[^]

      F 1 Reply Last reply
      0
      • L Lost User

        ForNow wrote:

        I noticed the mingw supports X64 inline assembler

        So does MSVC. See __asm | Microsoft Docs[^]

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        not supported for X64

        Quote:

        error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2065: 'mov': undeclared identifier 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2146: syntax error: missing ';' before identifier 'RAX' 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2065: 'RAX': undeclared identifier 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(136): error C2143: syntax error: missing ';' before '}' 1>CControlRegs.cpp

        L 1 Reply Last reply
        0
        • F ForNow

          not supported for X64

          Quote:

          error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2065: 'mov': undeclared identifier 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2146: syntax error: missing ';' before identifier 'RAX' 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2065: 'RAX': undeclared identifier 1>c:\dbgr\dbgr\dbgr\casidlist.cpp(136): error C2143: syntax error: missing ';' before '}' 1>CControlRegs.cpp

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          There are ways round most problems, see MASM for x64 (ml64.exe) | Microsoft Docs[^].

          F 1 Reply Last reply
          0
          • L Lost User

            There are ways round most problems, see MASM for x64 (ml64.exe) | Microsoft Docs[^].

            F Offline
            F Offline
            ForNow
            wrote on last edited by
            #5

            Just wondering why they removed that option if you want to write your own prolog and epilogue it is helpful more so there are no intrinsics to access the registers in C\C++ Thanks

            L 1 Reply Last reply
            0
            • F ForNow

              Just wondering why they removed that option if you want to write your own prolog and epilogue it is helpful more so there are no intrinsics to access the registers in C\C++ Thanks

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I doubt that many people these days even know that a prologue and epilogue exist.

              K 1 Reply Last reply
              0
              • L Lost User

                I doubt that many people these days even know that a prologue and epilogue exist.

                K Offline
                K Offline
                kalberts
                wrote on last edited by
                #7

                That is sort of why we have high level languages with their compilers. You shouldn't have to know. I am really curious to why the standard one is unsuitable, in this case. (Don't take this as any critical voice, or any sort of "objection" - it is meant as positive, curious question!)

                L 1 Reply Last reply
                0
                • K kalberts

                  That is sort of why we have high level languages with their compilers. You shouldn't have to know. I am really curious to why the standard one is unsuitable, in this case. (Don't take this as any critical voice, or any sort of "objection" - it is meant as positive, curious question!)

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  I think your message was not meant for me, but ForNow.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups