#PB_Compiler_32Bit vs. #PB_Processor_x86

Everything else that doesn't fall into one of the other PB categories.
Axolotl
Enthusiast
Enthusiast
Posts: 435
Joined: Wed Dec 31, 2008 3:36 pm

#PB_Compiler_32Bit vs. #PB_Processor_x86

Post by Axolotl »

Hi experts,
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 
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home