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. C / C++ / MFC
  4. typical NASM usage

typical NASM usage

Scheduled Pinned Locked Moved C / C++ / MFC
questionlinux
6 Posts 2 Posters 0 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.
  • C Offline
    C Offline
    Calin Negru
    wrote on last edited by
    #1

    What is a common way to use NASM (or other assembly compilers) when developing windows applications. Do you integrate it with VisualStudio shell or you go down the path of always using the command line?

    L 2 Replies Last reply
    0
    • C Calin Negru

      What is a common way to use NASM (or other assembly compilers) when developing windows applications. Do you integrate it with VisualStudio shell or you go down the path of always using the command line?

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

      I would not try to write Windows applications in assembler unless you have a very good reference manual for all the system calls. As to your question, this may be of interest: The Netwide Assembler (NASM) - Visual Studio Marketplace[^].

      C 2 Replies Last reply
      0
      • L Lost User

        I would not try to write Windows applications in assembler unless you have a very good reference manual for all the system calls. As to your question, this may be of interest: The Netwide Assembler (NASM) - Visual Studio Marketplace[^].

        C Offline
        C Offline
        Calin Negru
        wrote on last edited by
        #3

        Thanks Richard, appreciate your response

        1 Reply Last reply
        0
        • C Calin Negru

          What is a common way to use NASM (or other assembly compilers) when developing windows applications. Do you integrate it with VisualStudio shell or you go down the path of always using the command line?

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

          The usual way to integrate assembly files into a C++ project is to add the MASM "build customization" (right click a project, go to Build Dependencies > Build Customizations, check the box in front of MASM). Then you can include .asm files as normal sources without needing to do anything weird. You can install vsyasm and use YASM that way, if you prefer a more NASM-y syntax. Using NASM itself is possible, but as far as I know there's no nice integration like that, you can set it up manually as a custom build tool. Similar information is [in microsoft docs](https://docs.microsoft.com/en-us/cpp/assembler/masm/masm-for-x64-ml64-exe?view=msvc-160).

          C 1 Reply Last reply
          0
          • L Lost User

            The usual way to integrate assembly files into a C++ project is to add the MASM "build customization" (right click a project, go to Build Dependencies > Build Customizations, check the box in front of MASM). Then you can include .asm files as normal sources without needing to do anything weird. You can install vsyasm and use YASM that way, if you prefer a more NASM-y syntax. Using NASM itself is possible, but as far as I know there's no nice integration like that, you can set it up manually as a custom build tool. Similar information is [in microsoft docs](https://docs.microsoft.com/en-us/cpp/assembler/masm/masm-for-x64-ml64-exe?view=msvc-160).

            C Offline
            C Offline
            Calin Negru
            wrote on last edited by
            #5

            thanks harold aptroot, Richard

            1 Reply Last reply
            0
            • L Lost User

              I would not try to write Windows applications in assembler unless you have a very good reference manual for all the system calls. As to your question, this may be of interest: The Netwide Assembler (NASM) - Visual Studio Marketplace[^].

              C Offline
              C Offline
              Calin Negru
              wrote on last edited by
              #6

              thanks for advice

              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