Page 2 of 2

Re: Determing 32 or 64 bit

Posted: Tue Dec 17, 2013 5:36 pm
by USCode
Is there a cross-platform way?

Re: Determing 32 or 64 bit

Posted: Sat Dec 21, 2013 5:17 pm
by RichardL
Hi,

With the 32 bit compiler an integer variable is 4 bytes
With the 64 bit complier an integer variable is 8 bytes

So maybe Debug SizeOf(Integer) might provide a hint?

RichardL

Re: Determing 32 or 64 bit

Posted: Sun Dec 22, 2013 9:26 am
by Bisonte
RichardL wrote:Hi,

With the 32 bit compiler an integer variable is 4 bytes
With the 64 bit complier an integer variable is 8 bytes

So maybe Debug SizeOf(Integer) might provide a hint?

RichardL
not at runtime. It doesnt check the OS this program is executed...

And there is a "better readable" way to test it with "#PB_Compiler_Processor = #PB_Processor_x64/x86" ...