Re: versions and 32 vs 64-bit code

2011-12-26 Thread Alex Rønne Petersen
On 26-12-2011 14:23, Andrej Mitrovic wrote: On 12/26/11, Alex Rønne Petersen wrote: Use: version (D_LP64) { // 64-bit ... } else { // 32-bit ... } So why doesn't D_LP32 exist? If you already use "version(X86) else version(X86_64)" you're going to have to swap all of your code aro

Re: versions and 32 vs 64-bit code

2011-12-26 Thread Xinok
On 12/26/2011 8:23 AM, Andrej Mitrovic wrote: On 12/26/11, Alex Rønne Petersen wrote: Use: version (D_LP64) { // 64-bit ... } else { // 32-bit ... } So why doesn't D_LP32 exist? If you already use "version(X86) else version(X86_64)" you're going to have to swap all of your code a

Re: versions and 32 vs 64-bit code

2011-12-26 Thread Andrej Mitrovic
On 12/26/11, Alex Rønne Petersen wrote: > Use: > > version (D_LP64) > { > // 64-bit ... > } > else > { > // 32-bit ... > } So why doesn't D_LP32 exist? If you already use "version(X86) else version(X86_64)" you're going to have to swap all of your code around if you start using D_LP64..

Re: versions and 32 vs 64-bit code

2011-12-26 Thread Andrew Wiley
On Mon, Dec 26, 2011 at 3:53 AM, Alex Rønne Petersen wrote: > On 26-12-2011 06:41, Nathan Coe wrote: >> >> Is there a way to change what is compiled in based on whether the -m32 or >> -m64 >> option is chosen? I can see that there are predefined versions (for X86 >> and >> X86_64 e.g.), but I don'

Re: versions and 32 vs 64-bit code

2011-12-26 Thread Alex Rønne Petersen
On 26-12-2011 06:41, Nathan Coe wrote: Is there a way to change what is compiled in based on whether the -m32 or -m64 option is chosen? I can see that there are predefined versions (for X86 and X86_64 e.g.), but I don't know if this is based on the compile options, or the platform the compilation

Re: versions and 32 vs 64-bit code

2011-12-25 Thread Vladimir Panteleev
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

versions and 32 vs 64-bit code

2011-12-25 Thread Nathan Coe
Is there a way to change what is compiled in based on whether the -m32 or -m64 option is chosen? I can see that there are predefined versions (for X86 and X86_64 e.g.), but I don't know if this is based on the compile options, or the platform the compilation is being performed on. As an example, if