I cannot see any difference on my Intel machine here. (No ARM computer available)
Do I miss something, or is this a redundant definition only?
Or maybe a stupid question anyway.
But, what is more reliable?
Code: Select all
CompilerIf #PB_Compiler_32Bit ; Set to 1 if the compiler generates 32-bit code, set to 0 else.
Debug "HINT: Compiler generates 32-bit code."
CompilerEndIf
CompilerIf #PB_Compiler_64Bit ; Set to 1 if the compiler generates 64-bit code, set to 0 else.
Debug "HINT: Compiler generates 64-bit code."
CompilerEndIf
CompilerSelect #PB_Compiler_Processor
CompilerCase #PB_Processor_x86 ; .. x86 processor architecture (also called IA-32 or x86-32)
Debug "HINT: Compiler generates 32-bit code."
CompilerCase #PB_Processor_x64 ; .. x86-64 processor architecture (also called x64, AMD64 or Intel64)
Debug "HINT: Compiler generates 64-bit code."
CompilerCase #PB_Processor_Arm32 ; .. arm32 processor architecture
Debug "HINT: Compiler generates arm32 code."
CompilerCase #PB_Processor_Arm64 ; .. arm64 processor architecture (also called M1 on Apple computers)
Debug "HINT: Compiler generates arm64 code."
CompilerEndSelect