Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to install compiler that is native ARM but emits Intel instructions?
Forum Updated to NodeBB v4.3 + New Features

How to install compiler that is native ARM but emits Intel instructions?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 698 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by
    #1

    I'm running Windows on ARM hardware, and wish to build Intel binaries. When i go to my Kits and see the available compilers, this is the list:

    9121051e-c6f9-4ef2-86dd-40d364325bce.png

    What i'd like to see is arm64_amd64 as a choice, ie: a compiler that runs native as an ARM app, but emits x64 Intel instructions.

    I went to the VS2022 installer, and looked, and do not see what i think i should see there:
    fff5c432-93e7-4121-9e81-5717f97d0977.png

    if the correct thing IS there, which one is it? if it is NOT there, why not?

    -dave

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      This is my installation:

      Screenshot 2024-07-09 at 23.02.21.png

      But, I think the Qt Creator x64 build will ignore the arm64 native compilers. You will have to add them ... manually!

      Or use my unofficial arm64 build of Qt Creator from qtcreator-windows-arm64-msvc-13.0.2.7z.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        davecotter
        wrote on last edited by
        #3

        i will wait until this is a "use the installer" type of install. i don't want to do non-standard stuff in production

        cristian-adamC 1 Reply Last reply
        0
        • D davecotter

          i will wait until this is a "use the installer" type of install. i don't want to do non-standard stuff in production

          cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          @davecotter said in How to install compiler that is native ARM but emits Intel instructions?:

          i will wait until this is a "use the installer" type of install. i don't want to do non-standard stuff in production

          Understandable.

          But if you plan to use the Arm64 computer to do development, pick at least an arm64 build of clangd.

          I just checked the x64 vs arm64 builds of clangd, and the arm64 was 50% faster.

          You can enable the qtc.languageserverprotocol.timing under Tools > Debug Qt Creator > Show Logs....

          And open a cpp file, wait for it to be parsed, close, and repeat.

          https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/LLVM-18.1.8-woa64.exe but we do have a few patches on-top vanilla llvm, but then maybe it just works.

          Qt Creator 15 will have a Windows Arm64 build.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            davecotter
            wrote on last edited by davecotter
            #5

            open a cpp file, wait for it to be parsed, close, and repeat

            this would be prohibitive, given my project is thousands of files.
            also, it still feels too hacky to do on all the build computers, again, i think i should wait for the "installer" version

            Qt Creator 15 will have a Windows Arm64 build

            by that do you mean that the compiler will be ARM native, but will emit Intel x64 instructions? and will clangd also be native? if so, i'll just wait.

            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #6

              by that do you mean that the compiler will be ARM native, but will emit Intel x64 instructions? and will clangd also be native? if so, i'll just wait.

              Yes. The arm64 compilers will be preferred.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                davecotter
                wrote on last edited by
                #7

                okay i'm now on Qt Creator 15.0.1, and this is the compiler:

                Screenshot 2025-02-17 at 6.59.26 PM.png

                Is that the best one? it seems very slow

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  davecotter
                  wrote on last edited by
                  #8

                  does anyone have any advice here?

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved