I also tried with Visual Studio 2017, which supposedly can create ARM32/64 executables but MS mucked around with that and now, the "tricks" needed to have it create such executables have not provided any joy in that environment either.
I know PascalDragon can make that thing produce ARM executables. Maybe he can point me in the right direction with either FPC or VS.
FPC currently only supports PE executables for ARM, but not Aarch64.
When installing Visual Studio (or updating/changing it using the Visual Studio Installer) make sure that the toolsets for ARM and ARM64 are selected in the “Single Components” tab (named “Visual Studio C++ compiler and libraries for ARM” or “... ARM64” respectively).
Now create a project (e.g. “Command line application C++”), then you go to the configuration settings in the top bar, the combobox which contains by default “x86”, “x64” and “Configuration manager”. Select the later. A dialog should pop up. At the top right there is a combobox title “active solution platform” (or so, I have a German VS
). Select the entry “New”. Then select “ARM” go to okay (with the “add project platform” checkbox selected) and then again “ARM64” and okay again.
You should be able to create applications for both ARM and ARM64 now.