versions and 32 vs 64-bit code

Vladimir Panteleev vladimir at thecybershadow.net
Sun Dec 25 22:14:01 PST 2011


On Monday, 26 December 2011 at 05:41:11 UTC, Nathan Coe wrote:
> As an example, if I am compiling on a 64-bit intel machine, is 
> the version X86 or X86_64 set by default?

The predefined version identifiers specify the *target* 
architecture.

Note that the default target architecture matches the 
architecture of the compiler binary: the 64-bit DMD compiler has 
-m64 by default (use -m32 to override).

http://dlang.org/version.html#PredefinedVersions lists predefined 
version identifiers.


More information about the Digitalmars-d mailing list