How to build for Arm64EC with Visual Studio 2022 command line?
I'm trying to build a "Hello, world" for Arm64EC using Visual Studio 2022 and these instructions: https://learn.microsoft.com/en-us/windows/arm/arm64ec-build
I don't have an Arm64 Developer Command Prompt in my Start menu. How to install it?
I have found vcvarsamd64_arm64.bat but the compiler says it doesn't understand the /arm64ec option:
C:\0>type hello.c
#include
int main()
{
puts("Hello, ARM64EC");
return 0;
}
C:\0>"\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.14.23
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_arm64'
C:\0>cl /O2 /arm64ec hello.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35222 for ARM64
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '/arm64ec'
hello.c
Microsoft (R) Incremental Linker Version 14.44.35222.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:hello.exe
hello.obj