How to install compiler that is native ARM but emits Intel instructions?
-
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:
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:
if the correct thing IS there, which one is it? if it is NOT there, why not?
-dave
-
This is my installation:
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. -
i will wait until this is a "use the installer" type of install. i don't want to do non-standard stuff in production
-
i will wait until this is a "use the installer" type of install. i don't want to do non-standard stuff in production
@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 ofclangd
.I just checked the
x64
vsarm64
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.
-
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" versionQt 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 willclangd
also be native? if so, i'll just wait. -
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.
-
okay i'm now on Qt Creator 15.0.1, and this is the compiler:
Is that the best one? it seems very slow
-
does anyone have any advice here?