Identifying 32 vs 64 bit OS?

Freddy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 11 00:58:14 PDT 2014


On Monday, 11 August 2014 at 05:19:01 UTC, Jeremy DeHaan wrote:
> I am looking at these versions as described here: 
> http://dlang.org/version.html
>
> There are X86 and X86_64 version identifiers, but these 
> specifically mention that they are versions for the processor 
> type. Can they also be used to determine if the OS is running 
> in 32 vs 64 bits?
They mean what the integer(or pointer) size for the executable 
code
generated(change able with -m(32|64)) is when compiled. If you 
want to check if
the target OS(not your code) is running 32 vs 64 bit you have to 
do system call for your target OS.


More information about the Digitalmars-d-learn mailing list