25 Aralık 2019 Çarşamba

Visual Studio Target

Giriş
Seçenekler şöyle
- Any CPU
- Any CPU32BitPreferred
- x86
- x64
- ARM

Any CPU
Any CPU için açıklama şöyle.
The default setting, "Any CPU", means that the assembly will run natively on the CPU it is currently running on. Meaning, it will run as 64-bit on a 64-bit machine and 32-bit on a 32-bit machine. If the assembly is called from a 64-bit application, it will perform as a 64-bit assembly and so on.
Açıklaması şöyle. Eğer 64 bit makinede kullanırsak SSE instruction set kullanılır.
If you want consistent results then compiling with the AnyCPU target, and a 64-bit operating system, is the quick solution. The x64 jitter uses SSE instead of FPU instructions for floating point math.
Any CPU32BitPreferred
x86 Windows, x64 Windows ve ARM ile hep 32 bit çalışır. Açıklaması şöyle.
  • If the process runs on a 32-bit Windows system, it runs as a 32-bit process. CIL is compiled to x86 machine code.
  • If the process runs on a 64-bit Windows system, it runs as a 32-bit process. CIL is compiled to x86 machine code.
  • If the process runs on an ARM Windows system, it runs as a 32-bit process. CIL is compiled to ARM machine code.
x86 - ARM CPU İle Çalışmaz
x86 Windows ile 32 bit, x64 Window ile 64 bit çalışır. ARM ile çalışmaz
Açıklaması şöyle.
The difference, then, between “Any CPU 32-bit preferred” and “x86” is only this: a .NET application compiled to x86 will fail to run on an ARM Windows system, but an “Any CPU 32-bit preferred” application will run successfully.
x64
Sadece x64 Windows ile çalışır. x86 Windows ve ARM ile çalışmaz

Hiç yorum yok:

Yorum Gönder